Skip to content

Commit eaec41f

Browse files
committed
e2e: test HelmChart ValuesFile
1 parent 7268c8b commit eaec41f

File tree

6 files changed

+48
-2
lines changed

6 files changed

+48
-2
lines changed

.github/workflows/e2e.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ jobs:
5757
kubectl -n source-system wait gitrepository/gitrepository-sample --for=condition=ready --timeout=1m
5858
kubectl -n source-system wait helmrepository/helmrepository-sample --for=condition=ready --timeout=1m
5959
kubectl -n source-system wait helmchart/helmchart-sample --for=condition=ready --timeout=1m
60-
kubectl -n source-system logs deploy/source-controller
60+
kubectl -n source-system delete -f ./config/samples
61+
- name: Run HelmChart values file tests
62+
run: |
63+
kubectl -n source-system apply -f ./config/testdata/helmchart-valuesfile
64+
kubectl -n source-system wait helmchart/mariadb --for=condition=ready --timeout=5m
65+
kubectl -n source-system wait helmchart/mariadb-git --for=condition=ready --timeout=5m
66+
kubectl -n source-system delete -f ./config/testdata/helmchart-valuesfile
6167
- name: Debug failure
6268
if: failure()
6369
run: |

config/samples/source_v1alpha1_helmchart_gitrepository.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ metadata:
44
name: helmchart-git-sample
55
spec:
66
chart: charts/podinfo
7-
version: '^2.0.0'
87
sourceRef:
98
kind: GitRepository
109
name: gitrepository-sample
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: source.toolkit.fluxcd.io/v1alpha1
2+
kind: GitRepository
3+
metadata:
4+
name: bitnami-charts
5+
spec:
6+
interval: 1m
7+
url: https://github.com/bitnami/charts
8+
ref:
9+
branch: master
10+
ignore:
11+
/*
12+
!/bitnami/
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: source.toolkit.fluxcd.io/v1alpha1
2+
kind: HelmChart
3+
metadata:
4+
name: mariadb-git
5+
spec:
6+
chart: bitnami/mariadb
7+
valuesFile: values-production.yaml
8+
sourceRef:
9+
kind: GitRepository
10+
name: bitnami-charts
11+
interval: 1m
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: source.toolkit.fluxcd.io/v1alpha1
2+
kind: HelmChart
3+
metadata:
4+
name: mariadb
5+
spec:
6+
chart: mariadb
7+
valuesFile: values-production.yaml
8+
sourceRef:
9+
kind: HelmRepository
10+
name: bitnami-charts
11+
interval: 1m
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: source.toolkit.fluxcd.io/v1alpha1
2+
kind: HelmRepository
3+
metadata:
4+
name: bitnami-charts
5+
spec:
6+
interval: 1m
7+
url: https://charts.bitnami.com/bitnami

0 commit comments

Comments
 (0)