From 87ce360f87eada402483179017b05d6e09a56e04 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Sat, 3 Feb 2024 13:01:39 +0200 Subject: [PATCH] e2e: Add helm sources tests Signed-off-by: Stefan Prodan --- tests/v.2.2/clusters/kind/sources.yaml | 16 +++++++++ tests/v.2.2/sources/helm.yaml | 45 ++++++++++++++++++++++++++ tests/v.2.2/sources/namespace.yaml | 5 +++ 3 files changed, 66 insertions(+) create mode 100644 tests/v.2.2/clusters/kind/sources.yaml create mode 100644 tests/v.2.2/sources/helm.yaml create mode 100644 tests/v.2.2/sources/namespace.yaml diff --git a/tests/v.2.2/clusters/kind/sources.yaml b/tests/v.2.2/clusters/kind/sources.yaml new file mode 100644 index 0000000..07bd9a2 --- /dev/null +++ b/tests/v.2.2/clusters/kind/sources.yaml @@ -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 diff --git a/tests/v.2.2/sources/helm.yaml b/tests/v.2.2/sources/helm.yaml new file mode 100644 index 0000000..ddbe587 --- /dev/null +++ b/tests/v.2.2/sources/helm.yaml @@ -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 diff --git a/tests/v.2.2/sources/namespace.yaml b/tests/v.2.2/sources/namespace.yaml new file mode 100644 index 0000000..48fc32c --- /dev/null +++ b/tests/v.2.2/sources/namespace.yaml @@ -0,0 +1,5 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: sources-tests \ No newline at end of file