@@ -45,39 +45,38 @@ jobs:
4545 KUBEBUILDER_ASSETS : ${{ github.workspace }}/kubebuilder/bin
4646 - name : Load test image
4747 run : kind load docker-image test/kustomize-controller:latest
48- - name : Deploy source-controller
48+ - name : Deploy controllers
4949 run : |
50- kustomize build https://github.com/fluxcd/source-controller//config/default?ref=v0.0.1-alpha.4 | kubectl apply -f-
51- kubectl -n source-system rollout status deploy/source-controller --timeout=1m
52- - name : Deploy kustomize-controller
53- run : make dev-deploy IMG=test/kustomize-controller:latest
50+ make dev-deploy IMG=test/kustomize-controller:latest
51+ kubectl -n kustomize-system rollout status deploy/source-controller --timeout=1m
52+ kubectl -n kustomize-system rollout status deploy/kustomize-controller --timeout=1m
5453 env :
5554 KUBEBUILDER_ASSETS : ${{ github.workspace }}/kubebuilder/bin
5655 - name : Run overlays tests
5756 run : |
58- kubectl apply -k ./config/testdata/overlays
59- kubectl wait kustomizations/webapp-staging --for=condition=ready --timeout=4m
60- kubectl wait kustomizations/webapp-production --for=condition=ready --timeout=4m
57+ kubectl -n kustomize-system apply -k ./config/testdata/overlays
58+ kubectl -n kustomize-system wait kustomizations/webapp-staging --for=condition=ready --timeout=4m
59+ kubectl -n kustomize-system wait kustomizations/webapp-production --for=condition=ready --timeout=4m
6160 - name : Run dependencies tests
6261 run : |
63- kubectl apply -k ./config/testdata/dependencies
64- kubectl wait kustomizations/common --for=condition=ready --timeout=4m
65- kubectl wait kustomizations/backend --for=condition=ready --timeout=4m
66- kubectl wait kustomizations/frontend --for=condition=ready --timeout=4m
62+ kubectl -n kustomize-system apply -k ./config/testdata/dependencies
63+ kubectl -n kustomize-system wait kustomizations/common --for=condition=ready --timeout=4m
64+ kubectl -n kustomize-system wait kustomizations/backend --for=condition=ready --timeout=4m
65+ kubectl -n kustomize-system wait kustomizations/frontend --for=condition=ready --timeout=4m
6766 - name : Run GC tests
6867 run : |
6968 kubectl get ns
70- kubectl delete -k ./config/testdata/overlays
69+ kubectl -n kustomize-system delete -k ./config/testdata/overlays
7170 until kubectl get ns staging 2>&1 | grep NotFound ; do sleep 2; done
7271 - name : Logs
7372 run : |
74- kubectl -n source -system logs deploy/source-controller
73+ kubectl -n kustomize -system logs deploy/source-controller
7574 kubectl -n kustomize-system logs deploy/kustomize-controller
7675 - name : Debug failure
7776 if : failure()
7877 run : |
79- kubectl get gitrepositories -oyaml
80- kubectl get kustomizations -oyaml
78+ kubectl -n kustomize-system get gitrepositories -oyaml
79+ kubectl -n kustomize-system get kustomizations -oyaml
8180 kubectl -n kustomize-system get all
82- kubectl -n source -system logs deploy/source-controller
81+ kubectl -n kustomize -system logs deploy/source-controller
8382 kubectl -n kustomize-system logs deploy/kustomize-controller
0 commit comments