Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial e2e CI job with 2 KinD clusters #35

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
e2e: use test built image
tiswanso committed Jan 26, 2023
commit 2f6df97ea313bd78d792c2e04a7b3ad96c3fa775
7 changes: 4 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ jobs:
build-deps-v2

- name: Run build
run: make docker-build
run: IMG=cluster-registry-controller:ci-test make docker-build
working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }}
- name: Get kind
run: go install sigs.k8s.io/kind@v0.11.1
@@ -73,15 +73,16 @@ jobs:
kind get kubeconfig --name "kind-${i}" > ${configPath}
echo KUBECONFIG${i}=${configPath} >> $GITHUB_ENV
echo CLUSTER${i}_CIDR="172.18.${i}.128/25" >> $GITHUB_ENV
kind load docker-image cluster-registry-controller:ci-test --name "kind-${i}"
done
working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }}
- name: multicluster tests
run: |
kubectl get pods -A --kubeconfig $KUBECONFIG1
helm install --namespace=cluster-registry --create-namespace cluster-registry-controller deploy/charts/cluster-registry --set localCluster.name=c1 --kubeconfig $KUBECONFIG1
helm install --namespace=cluster-registry --create-namespace cluster-registry-controller deploy/charts/cluster-registry --set localCluster.name=c1 --set image.repository=cluster-registry-controller --set image.tag=ci-test --kubeconfig $KUBECONFIG1
kubectl get pods -A --kubeconfig $KUBECONFIG1
kubectl get pods -A --kubeconfig $KUBECONFIG2
helm install --namespace=cluster-registry --create-namespace cluster-registry-controller deploy/charts/cluster-registry --set localCluster.name=c2 --kubeconfig $KUBECONFIG2
helm install --namespace=cluster-registry --create-namespace cluster-registry-controller deploy/charts/cluster-registry --set localCluster.name=c2 --set image.repository=cluster-registry-controller --set image.tag=ci-test --kubeconfig $KUBECONFIG2
kubectl get pods -A --kubeconfig $KUBECONFIG2
sleep 30
kubectl get clusters -o yaml --kubeconfig $KUBECONFIG1