Skip to content

Commit

Permalink
add Makefile cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
pli01 committed Mar 11, 2024
1 parent 1edbaeb commit be66f51
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: "Create local kubernetes ${{ matrix.k8s }} cluster"
run: |
kind create cluster -n local-${{ matrix.k8s }} --config ci/kind/local.yaml --image=kindest/node:${{ matrix.k8s }}
make ci-bootstrap-local-cluster K8S_VERSION=${{ matrix.k8s }}
kubectl get nodes -A
- name: Test on local environment
Expand All @@ -53,5 +53,5 @@ jobs:
- name: Teardown
if: always()
run: |
echo "Destroy cluster"
kind delete clusters -A
echo "Destroy cluster ${{ matrix.k8s }}"
make ci-delete-local-cluster K8S_VERSION=${{ matrix.k8s }}
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
HELMFILE_ENVIRONMENT := local
K8S_VERSION=v1.29.2

lint: repos
@helmfile -e $(HELMFILE_ENVIRONMENT) lint
Expand All @@ -21,4 +22,8 @@ local-root-ca:
./scripts/local-ca-root-issuer.sh

ci-local-tests:
@./ci/tests//test-local-url.sh
@./ci/tests/test-local-url.sh
ci-bootstrap-local-cluster:
kind create cluster -n local-$(K8S_VERSION) --config ci/kind/local.yaml --image=kindest/node:$(K8S_VERSION)
ci-delete-local-cluster:
kind delete cluster -n local-$(K8S_VERSION)
6 changes: 3 additions & 3 deletions helmfile.d/environments/local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ prometheus:
ingress_namespace: ingress-nginx
ingress_name: ingress-nginx

argocd:
installed: true

whoami:
installed: true
ingress_class: nginx
Expand All @@ -80,6 +83,3 @@ whoami:
# nginx.ingress.kubernetes.io/auth-secret: ingress-nginx/basic-auth
# nginx.ingress.kubernetes.io/auth-secret-type: auth-file
# nginx.ingress.kubernetes.io/auth-realm: "Progress Authentication"

argocd:
installed: true

0 comments on commit be66f51

Please sign in to comment.