Skip to content

Commit 833815c

Browse files
committed
ci: Include source-watcher in the e2e test suite
Signed-off-by: Stefan Prodan <[email protected]>
1 parent 31287b9 commit 833815c

File tree

8 files changed

+74
-10
lines changed

8 files changed

+74
-10
lines changed

.github/workflows/conformance.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
matrix:
7777
# Keep this list up-to-date with https://endoflife.date/kubernetes
7878
# Available versions can be found with "replicated cluster versions"
79-
K3S_VERSION: [ 1.32.8, 1.33.4 ]
79+
K3S_VERSION: [ 1.32.9, 1.33.5, 1.34.1 ]
8080
fail-fast: false
8181
steps:
8282
- name: Checkout
@@ -120,8 +120,7 @@ jobs:
120120
run: TEST_KUBECONFIG=${{ steps.prep.outputs.kubeconfig-path }} make e2e
121121
- name: Run flux bootstrap
122122
run: |
123-
./bin/flux bootstrap git --manifests ./manifests/install/ \
124-
--components-extra=image-reflector-controller,image-automation-controller \
123+
./bin/flux bootstrap git --manifests ./manifests/test/ \
125124
--url=https://github.com/fluxcd-testing/${{ steps.prep.outputs.cluster }} \
126125
--branch=main \
127126
--path=clusters/k3s \
@@ -169,7 +168,7 @@ jobs:
169168
strategy:
170169
matrix:
171170
# Keep this list up-to-date with https://endoflife.date/red-hat-openshift
172-
OPENSHIFT_VERSION: [ 4.19.0-okd ]
171+
OPENSHIFT_VERSION: [ 4.19.0-okd, 4.20.0-okd ]
173172
fail-fast: false
174173
steps:
175174
- name: Checkout
@@ -212,7 +211,6 @@ jobs:
212211
- name: Run flux bootstrap
213212
run: |
214213
./bin/flux bootstrap git --manifests ./manifests/openshift/ \
215-
--components-extra=image-reflector-controller,image-automation-controller \
216214
--url=https://github.com/fluxcd-testing/${{ steps.prep.outputs.cluster }} \
217215
--branch=main \
218216
--path=clusters/openshift \

.github/workflows/e2e-bootstrap.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
echo "test_repo_name=$TEST_REPO_NAME" >> $GITHUB_OUTPUT
5252
- name: bootstrap init
5353
run: |
54-
./bin/flux bootstrap github --manifests ./manifests/install/ \
54+
./bin/flux bootstrap github --manifests ./manifests/test/ \
5555
--owner=fluxcd-testing \
5656
--image-pull-secret=ghcr-auth \
5757
--registry-creds=fluxcd:$GITHUB_TOKEN \
@@ -66,7 +66,7 @@ jobs:
6666
kubectl -n flux-system get secret ghcr-auth | grep dockerconfigjson
6767
- name: bootstrap no-op
6868
run: |
69-
./bin/flux bootstrap github --manifests ./manifests/install/ \
69+
./bin/flux bootstrap github --manifests ./manifests/test/ \
7070
--owner=fluxcd-testing \
7171
--image-pull-secret=ghcr-auth \
7272
--repository=${{ steps.vars.outputs.test_repo_name }} \
@@ -78,7 +78,7 @@ jobs:
7878
- name: bootstrap customize
7979
run: |
8080
make setup-bootstrap-patch
81-
./bin/flux bootstrap github --manifests ./manifests/install/ \
81+
./bin/flux bootstrap github --manifests ./manifests/test/ \
8282
--owner=fluxcd-testing \
8383
--repository=${{ steps.vars.outputs.test_repo_name }} \
8484
--branch=main \
@@ -98,7 +98,7 @@ jobs:
9898
- name: test image automation
9999
run: |
100100
make setup-image-automation
101-
./bin/flux bootstrap github --manifests ./manifests/install/ \
101+
./bin/flux bootstrap github --manifests ./manifests/test/ \
102102
--owner=fluxcd-testing \
103103
--repository=${{ steps.vars.outputs.test_repo_name }} \
104104
--branch=main \

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
./bin/flux check --pre
6666
- name: flux install --manifests
6767
run: |
68-
./bin/flux install --manifests ./manifests/install/
68+
./bin/flux install --manifests ./manifests/test/
6969
- name: flux create secret
7070
run: |
7171
./bin/flux create secret git git-ssh-test \

manifests/openshift/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ resources:
55
- namespace.yaml
66
- scc.yaml
77
- ../bases/source-controller
8+
- ../bases/source-watcher
89
- ../bases/kustomize-controller
910
- ../bases/notification-controller
1011
- ../bases/helm-controller
@@ -17,6 +18,8 @@ transformers:
1718
images:
1819
- name: fluxcd/source-controller
1920
newName: ghcr.io/fluxcd/source-controller
21+
- name: fluxcd/source-watcher
22+
newName: ghcr.io/fluxcd/source-watcher
2023
- name: fluxcd/kustomize-controller
2124
newName: ghcr.io/fluxcd/kustomize-controller
2225
- name: fluxcd/helm-controller

manifests/openshift/scc.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ subjects:
2626
- kind: ServiceAccount
2727
name: source-controller
2828
namespace: flux-system
29+
- kind: ServiceAccount
30+
name: source-watcher
31+
namespace: flux-system
2932
- kind: ServiceAccount
3033
name: kustomize-controller
3134
namespace: flux-system

manifests/test/kustomization.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This overlay is used in end-to-end tests and contains all optional controllers.
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
namespace: flux-system
5+
resources:
6+
- namespace.yaml
7+
- ../bases/source-controller
8+
- ../bases/source-watcher
9+
- ../bases/kustomize-controller
10+
- ../bases/notification-controller
11+
- ../bases/helm-controller
12+
- ../bases/image-reflector-controller
13+
- ../bases/image-automation-controller
14+
- ../rbac
15+
- ../policies
16+
transformers:
17+
- labels.yaml
18+
images:
19+
- name: fluxcd/source-controller
20+
newName: ghcr.io/fluxcd/source-controller
21+
- name: fluxcd/source-watcher
22+
newName: ghcr.io/fluxcd/source-watcher
23+
- name: fluxcd/kustomize-controller
24+
newName: ghcr.io/fluxcd/kustomize-controller
25+
- name: fluxcd/helm-controller
26+
newName: ghcr.io/fluxcd/helm-controller
27+
- name: fluxcd/notification-controller
28+
newName: ghcr.io/fluxcd/notification-controller
29+
- name: fluxcd/image-reflector-controller
30+
newName: ghcr.io/fluxcd/image-reflector-controller
31+
- name: fluxcd/image-automation-controller
32+
newName: ghcr.io/fluxcd/image-automation-controller
33+
patches:
34+
- target:
35+
kind: Deployment
36+
name: "(kustomize-controller|helm-controller)"
37+
patch: |-
38+
- op: add
39+
path: /spec/template/spec/containers/0/args/-
40+
value: --feature-gates=ExternalArtifact=true

manifests/test/labels.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: builtin
2+
kind: LabelTransformer
3+
metadata:
4+
name: labels
5+
labels:
6+
app.kubernetes.io/part-of: flux
7+
app.kubernetes.io/instance: flux-system
8+
fieldSpecs:
9+
- path: metadata/labels
10+
create: true
11+
- kind: Deployment
12+
path: spec/template/metadata/labels
13+
create: true

manifests/test/namespace.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: flux-system
5+
labels:
6+
pod-security.kubernetes.io/warn: restricted
7+
pod-security.kubernetes.io/warn-version: latest

0 commit comments

Comments
 (0)