e2e: test HelmChart ValuesFile
This commit is contained in:
parent
7268c8b61d
commit
eaec41f6e9
|
@ -57,7 +57,13 @@ jobs:
|
|||
kubectl -n source-system wait gitrepository/gitrepository-sample --for=condition=ready --timeout=1m
|
||||
kubectl -n source-system wait helmrepository/helmrepository-sample --for=condition=ready --timeout=1m
|
||||
kubectl -n source-system wait helmchart/helmchart-sample --for=condition=ready --timeout=1m
|
||||
kubectl -n source-system logs deploy/source-controller
|
||||
kubectl -n source-system delete -f ./config/samples
|
||||
- name: Run HelmChart values file tests
|
||||
run: |
|
||||
kubectl -n source-system apply -f ./config/testdata/helmchart-valuesfile
|
||||
kubectl -n source-system wait helmchart/mariadb --for=condition=ready --timeout=5m
|
||||
kubectl -n source-system wait helmchart/mariadb-git --for=condition=ready --timeout=5m
|
||||
kubectl -n source-system delete -f ./config/testdata/helmchart-valuesfile
|
||||
- name: Debug failure
|
||||
if: failure()
|
||||
run: |
|
||||
|
|
|
@ -4,7 +4,6 @@ metadata:
|
|||
name: helmchart-git-sample
|
||||
spec:
|
||||
chart: charts/podinfo
|
||||
version: '^2.0.0'
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: gitrepository-sample
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
apiVersion: source.toolkit.fluxcd.io/v1alpha1
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: bitnami-charts
|
||||
spec:
|
||||
interval: 1m
|
||||
url: https://github.com/bitnami/charts
|
||||
ref:
|
||||
branch: master
|
||||
ignore:
|
||||
/*
|
||||
!/bitnami/
|
|
@ -0,0 +1,11 @@
|
|||
apiVersion: source.toolkit.fluxcd.io/v1alpha1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: mariadb-git
|
||||
spec:
|
||||
chart: bitnami/mariadb
|
||||
valuesFile: values-production.yaml
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: bitnami-charts
|
||||
interval: 1m
|
|
@ -0,0 +1,11 @@
|
|||
apiVersion: source.toolkit.fluxcd.io/v1alpha1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: mariadb
|
||||
spec:
|
||||
chart: mariadb
|
||||
valuesFile: values-production.yaml
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: bitnami-charts
|
||||
interval: 1m
|
|
@ -0,0 +1,7 @@
|
|||
apiVersion: source.toolkit.fluxcd.io/v1alpha1
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
name: bitnami-charts
|
||||
spec:
|
||||
interval: 1m
|
||||
url: https://charts.bitnami.com/bitnami
|
Loading…
Reference in New Issue