From 8eaac6ee40aefad1651a869be88e64193f7cc440 Mon Sep 17 00:00:00 2001
From: "Antoine R. Dumont (@ardumont)" <antoine.romain.dumont@gmail.com>
Date: Wed, 22 Mar 2023 11:33:03 +0100
Subject: [PATCH] Install redis-operator in cluster archive-staging-rke2

Refs. swh/infra/sysadm-environment#4809
---
 archive-staging-rke2/namespaces.yaml          |  5 +++++
 .../archive-staging-rke2/redis-operator.yaml  | 22 +++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 argocd-configuration/applications/archive-staging-rke2/redis-operator.yaml

diff --git a/archive-staging-rke2/namespaces.yaml b/archive-staging-rke2/namespaces.yaml
index 3ef9299..c7ebc51 100644
--- a/archive-staging-rke2/namespaces.yaml
+++ b/archive-staging-rke2/namespaces.yaml
@@ -48,3 +48,8 @@ apiVersion: v1
 kind: Namespace
 metadata:
   name: software-stories
+---
+apiVersion: v1
+kind: Namespace
+metadata:
+  name: redis
diff --git a/argocd-configuration/applications/archive-staging-rke2/redis-operator.yaml b/argocd-configuration/applications/archive-staging-rke2/redis-operator.yaml
new file mode 100644
index 0000000..8cdce15
--- /dev/null
+++ b/argocd-configuration/applications/archive-staging-rke2/redis-operator.yaml
@@ -0,0 +1,22 @@
+apiVersion: argoproj.io/v1alpha1
+kind: Application
+metadata:
+  name: archive-staging-rke2-redis-operator
+  namespace: argocd
+spec:
+  project: default
+  source:
+    chart: redis-operator
+    repoURL: 'https://ot-container-kit.github.io/helm-charts/'
+    targetRevision: 0.14.3
+    helm:
+      releaseName: redis-operator
+  destination:
+    server: https://rancher.euwest.azure.internal.softwareheritage.org/k8s/clusters/c-m-9n5h9nrf
+    namespace: redis
+  syncPolicy:
+    automated:
+      prune: true
+      selfHeal: true
+
+
-- 
GitLab