Skip to content

Commit fbb0516

Browse files
authored
Merge pull request #30 from fluxcd/source-controller-v0.0.1-alpha.6
Update source-controller to v0.0.1-alpha.6
2 parents a908fb8 + 84f23a7 commit fbb0516

File tree

3 files changed

+27
-22
lines changed

3 files changed

+27
-22
lines changed

.github/workflows/e2e.yaml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ apiVersion: source.fluxcd.io/v1alpha1
5959
kind: GitRepository
6060
metadata:
6161
name: podinfo
62-
namespace: default
62+
namespace: kustomize-system
6363
spec:
6464
interval: 1m
6565
url: https://github.com/stefanprodan/podinfo-deploy
@@ -92,6 +92,7 @@ apiVersion: kustomize.fluxcd.io/v1alpha1
9292
kind: Kustomization
9393
metadata:
9494
name: podinfo-dev
95+
namespace: kustomize-system
9596
spec:
9697
interval: 5m
9798
path: "./overlays/dev/"
@@ -192,6 +193,7 @@ apiVersion: kustomize.fluxcd.io/v1alpha1
192193
kind: Kustomization
193194
metadata:
194195
name: istio
196+
namespace: kustomize-system
195197
spec:
196198
interval: 10m
197199
path: "./profiles/default/"
@@ -208,6 +210,7 @@ apiVersion: kustomize.fluxcd.io/v1alpha1
208210
kind: Kustomization
209211
metadata:
210212
name: podinfo-dev
213+
namespace: kustomize-system
211214
spec:
212215
dependsOn:
213216
- istio
@@ -228,6 +231,7 @@ apiVersion: source.fluxcd.io/v1alpha1
228231
kind: GitRepository
229232
metadata:
230233
name: podinfo-releases
234+
namespace: kustomize-system
231235
spec:
232236
interval: 5m
233237
url: https://github.com/stefanprodan/podinfo-deploy
@@ -245,6 +249,7 @@ apiVersion: kustomize.fluxcd.io/v1alpha1
245249
kind: Kustomization
246250
metadata:
247251
name: podinfo-production
252+
namespace: kustomize-system
248253
spec:
249254
interval: 10m
250255
path: "./overlays/production/"
@@ -267,6 +272,7 @@ apiVersion: kustomize.fluxcd.io/v1alpha1
267272
kind: Profile
268273
metadata:
269274
name: default
275+
namespace: kustomize-system
270276
spec:
271277
alert:
272278
type: slack

config/default/kustomization.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: kustomize-system
4-
bases:
4+
resources:
55
- ../crd
66
- ../rbac
77
- ../manager
8-
resources:
9-
- namespace.yaml
10-
8+
- github.com/fluxcd/source-controller/config//crd?ref=v0.0.1-alpha.6
9+
- github.com/fluxcd/source-controller/config//manager?ref=v0.0.1-alpha.6
10+
- namespace.yaml

0 commit comments

Comments
 (0)