From 164570237b7b4b35b356922553947fdd9aa196ec Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Wed, 3 Dec 2025 19:18:34 +0100 Subject: [PATCH] feat: add redis operator --- .../root/charts/cloudnative-pg/Chart.yaml | 3 ++ .../cloudnative-pg/templates/app.yaml} | 0 foundation/root/charts/monitor/Chart.yaml | 3 ++ .../root/charts/monitor/templates/app.yaml | 26 +++++++++++++++++ foundation/root/charts/redis/Chart.yaml | 3 ++ .../redis/templates/redis-operator.yaml | 29 +++++++++++++++++++ ...pplicationset.yaml => applicationset.yaml} | 0 foundation/root/templates/project.yaml | 2 ++ 8 files changed, 66 insertions(+) create mode 100644 foundation/root/charts/cloudnative-pg/Chart.yaml rename foundation/root/{templates/cloudnative-pg.yaml => charts/cloudnative-pg/templates/app.yaml} (100%) create mode 100644 foundation/root/charts/monitor/Chart.yaml create mode 100644 foundation/root/charts/monitor/templates/app.yaml create mode 100644 foundation/root/charts/redis/Chart.yaml create mode 100644 foundation/root/charts/redis/templates/redis-operator.yaml rename foundation/root/templates/{_applicationset.yaml => applicationset.yaml} (100%) diff --git a/foundation/root/charts/cloudnative-pg/Chart.yaml b/foundation/root/charts/cloudnative-pg/Chart.yaml new file mode 100644 index 0000000..b2b2921 --- /dev/null +++ b/foundation/root/charts/cloudnative-pg/Chart.yaml @@ -0,0 +1,3 @@ +apiVersion: v2 +version: 1.0.0 +name: cloudnative-pg diff --git a/foundation/root/templates/cloudnative-pg.yaml b/foundation/root/charts/cloudnative-pg/templates/app.yaml similarity index 100% rename from foundation/root/templates/cloudnative-pg.yaml rename to foundation/root/charts/cloudnative-pg/templates/app.yaml diff --git a/foundation/root/charts/monitor/Chart.yaml b/foundation/root/charts/monitor/Chart.yaml new file mode 100644 index 0000000..b7e2b8b --- /dev/null +++ b/foundation/root/charts/monitor/Chart.yaml @@ -0,0 +1,3 @@ +apiVersion: v2 +version: 1.0.0 +name: monitor diff --git a/foundation/root/charts/monitor/templates/app.yaml b/foundation/root/charts/monitor/templates/app.yaml new file mode 100644 index 0000000..4636bd3 --- /dev/null +++ b/foundation/root/charts/monitor/templates/app.yaml @@ -0,0 +1,26 @@ +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: trivy-operator + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: foundation + server: https://kubernetes.default.svc + project: foundation + source: + repoURL: https://aquasecurity.github.io/helm-charts/ + targetRevision: 0.31.0 + chart: trivy-operator + helm: {} + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - ServerSideApply=true + - ApplyOutOfSyncOnly=true + - CreateNamespace=true diff --git a/foundation/root/charts/redis/Chart.yaml b/foundation/root/charts/redis/Chart.yaml new file mode 100644 index 0000000..668dd59 --- /dev/null +++ b/foundation/root/charts/redis/Chart.yaml @@ -0,0 +1,3 @@ +apiVersion: v2 +version: 1.0.0 +name: redis diff --git a/foundation/root/charts/redis/templates/redis-operator.yaml b/foundation/root/charts/redis/templates/redis-operator.yaml new file mode 100644 index 0000000..64a7405 --- /dev/null +++ b/foundation/root/charts/redis/templates/redis-operator.yaml @@ -0,0 +1,29 @@ +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: redis-operator + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: foundation + server: https://kubernetes.default.svc + project: foundation + source: + repoURL: https://ot-container-kit.github.io/helm-charts/ + targetRevision: 0.22.2 + chart: redis-operator + helm: {} + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - ServerSideApply=true + - ApplyOutOfSyncOnly=true + - CreateNamespace=true + info: + - name: "Documentation: " + value: "https://redis-operator.opstree.dev/" diff --git a/foundation/root/templates/_applicationset.yaml b/foundation/root/templates/applicationset.yaml similarity index 100% rename from foundation/root/templates/_applicationset.yaml rename to foundation/root/templates/applicationset.yaml diff --git a/foundation/root/templates/project.yaml b/foundation/root/templates/project.yaml index bdf9134..f56e01d 100644 --- a/foundation/root/templates/project.yaml +++ b/foundation/root/templates/project.yaml @@ -10,6 +10,8 @@ spec: destinations: - namespace: foundation server: https://kubernetes.default.svc + - namespace: argocd + server: https://kubernetes.default.svc clusterResourceWhitelist: - group: "*" kind: "*"