From 4d9fd7196c933b67dd01fd869b7c48ec011133c5 Mon Sep 17 00:00:00 2001 From: Michael Thomson Date: Sat, 7 Jun 2025 01:50:28 -0400 Subject: [PATCH] cnpg --- .../helmrepositories/helmrepository-cnpg.yaml | 8 ++++++++ .../kustomizations/kustomization-cnpg.yaml | 18 ++++++++++++++++++ bootstrap/namespaces/namespace-cnpg.yaml | 4 ++++ cnpg/helmrelease-cnpg.yaml | 18 ++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 bootstrap/helmrepositories/helmrepository-cnpg.yaml create mode 100644 bootstrap/kustomizations/kustomization-cnpg.yaml create mode 100644 bootstrap/namespaces/namespace-cnpg.yaml create mode 100644 cnpg/helmrelease-cnpg.yaml diff --git a/bootstrap/helmrepositories/helmrepository-cnpg.yaml b/bootstrap/helmrepositories/helmrepository-cnpg.yaml new file mode 100644 index 0000000..9e1968a --- /dev/null +++ b/bootstrap/helmrepositories/helmrepository-cnpg.yaml @@ -0,0 +1,8 @@ +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: HelmRepository +metadata: + name: cnpg + namespace: flux-system +spec: + interval: 15m + url: https://cloudnative-pg.github.io/charts diff --git a/bootstrap/kustomizations/kustomization-cnpg.yaml b/bootstrap/kustomizations/kustomization-cnpg.yaml new file mode 100644 index 0000000..dace319 --- /dev/null +++ b/bootstrap/kustomizations/kustomization-cnpg.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: cnpg + namespace: flux-system +spec: + interval: 15m + path: ./cnpg + prune: true # remove any elements later removed from the above path + timeout: 2m # if not set, this defaults to interval duration, which is 1h + sourceRef: + kind: GitRepository + name: flux-system + healthChecks: + - apiVersion: helm.toolkit.fluxcd.io/v2beta2 + kind: HelmRelease + name: cnpg + namespace: cnpg diff --git a/bootstrap/namespaces/namespace-cnpg.yaml b/bootstrap/namespaces/namespace-cnpg.yaml new file mode 100644 index 0000000..6b7aad5 --- /dev/null +++ b/bootstrap/namespaces/namespace-cnpg.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: cnpg diff --git a/cnpg/helmrelease-cnpg.yaml b/cnpg/helmrelease-cnpg.yaml new file mode 100644 index 0000000..5005bf3 --- /dev/null +++ b/cnpg/helmrelease-cnpg.yaml @@ -0,0 +1,18 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta2 +kind: HelmRelease +metadata: + name: cnpg + namespace: cnpg +spec: + chart: + spec: + chart: cnpg + version: 0.24.x + sourceRef: + kind: HelmRepository + name: cnpg + namespace: flux-system + interval: 15m + timeout: 5m + releaseName: cnpg + values: