Skip to content

Commit

Permalink
e2e: Add helm sources tests
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Feb 3, 2024
1 parent d620c2f commit 87ce360
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/v.2.2/clusters/kind/sources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: sources-tests
namespace: flux-system
spec:
serviceAccountName: kustomize-controller
interval: 10m
sourceRef:
kind: GitRepository
name: flux-system
path: ./tests/v2.2/sources
prune: true
wait: true
timeout: 5m
45 changes: 45 additions & 0 deletions tests/v.2.2/sources/helm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: podinfo-https
namespace: sources-tests
spec:
interval: 10m
url: https://stefanprodan.github.io/podinfo
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmChart
metadata:
name: podinfo-https
namespace: sources-tests
spec:
interval: 10m
chart: podinfo
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: podinfo-https
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: podinfo-oci
namespace: sources-tests
spec:
type: oci
interval: 10m
url: oci://ghcr.io/stefanprodan/charts/podinfo
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmChart
metadata:
name: podinfo-oci
namespace: sources-tests
spec:
interval: 10m
chart: podinfo
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: podinfo-oci
5 changes: 5 additions & 0 deletions tests/v.2.2/sources/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: sources-tests

0 comments on commit 87ce360

Please sign in to comment.