From ee1a40280818691c3aa2cb9deaab0e26f15461e9 Mon Sep 17 00:00:00 2001
From: Maarten de Waard <maarten@greenhost.nl>
Date: Mon, 12 Jul 2021 12:04:27 +0200
Subject: [PATCH] re-add flux2/cluster/optional folder

---
 .../cluster/optional/nextcloud/nextcloud.yaml | 30 +++++++++++++++++++
 .../optional/rocketchat/rocketchat.yaml       | 30 +++++++++++++++++++
 flux2/cluster/optional/velero/velero.yaml     | 26 ++++++++++++++++
 .../cluster/optional/wordpress/wordpress.yaml | 25 ++++++++++++++++
 4 files changed, 111 insertions(+)
 create mode 100644 flux2/cluster/optional/nextcloud/nextcloud.yaml
 create mode 100644 flux2/cluster/optional/rocketchat/rocketchat.yaml
 create mode 100644 flux2/cluster/optional/velero/velero.yaml
 create mode 100644 flux2/cluster/optional/wordpress/wordpress.yaml

diff --git a/flux2/cluster/optional/nextcloud/nextcloud.yaml b/flux2/cluster/optional/nextcloud/nextcloud.yaml
new file mode 100644
index 000000000..e09fbd14a
--- /dev/null
+++ b/flux2/cluster/optional/nextcloud/nextcloud.yaml
@@ -0,0 +1,30 @@
+---
+apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
+kind: Kustomization
+metadata:
+  name: nextcloud
+  namespace: flux-system
+spec:
+  interval: 1h
+  dependsOn:
+    - name: core
+    - name: infrastructure
+  sourceRef:
+    kind: GitRepository
+    name: openappstack
+  path: ./flux2/apps/nextcloud
+  prune: true
+  validation: client
+  # healthChecks:
+  #   - apiVersion: helm.toolkit.fluxcd.io/v1beta1
+  #     kind: HelmRelease
+  #     name: podinfo
+  #     namespace: podinfo
+  postBuild:
+    substituteFrom:
+      - kind: Secret
+        name: oas-nextcloud-variables
+      - kind: Secret
+        name: oas-oauth-variables
+      - kind: Secret
+        name: oas-cluster-variables
diff --git a/flux2/cluster/optional/rocketchat/rocketchat.yaml b/flux2/cluster/optional/rocketchat/rocketchat.yaml
new file mode 100644
index 000000000..c3cd0c2d6
--- /dev/null
+++ b/flux2/cluster/optional/rocketchat/rocketchat.yaml
@@ -0,0 +1,30 @@
+---
+apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
+kind: Kustomization
+metadata:
+  name: rocketchat
+  namespace: flux-system
+spec:
+  interval: 1h
+  dependsOn:
+    - name: core
+    - name: infrastructure
+  sourceRef:
+    kind: GitRepository
+    name: openappstack
+  path: ./flux2/apps/rocketchat
+  prune: true
+  validation: client
+  # healthChecks:
+  #   - apiVersion: helm.toolkit.fluxcd.io/v1beta1
+  #     kind: HelmRelease
+  #     name: podinfo
+  #     namespace: podinfo
+  postBuild:
+    substituteFrom:
+      - kind: Secret
+        name: oas-rocketchat-variables
+      - kind: Secret
+        name: oas-oauth-variables
+      - kind: Secret
+        name: oas-cluster-variables
diff --git a/flux2/cluster/optional/velero/velero.yaml b/flux2/cluster/optional/velero/velero.yaml
new file mode 100644
index 000000000..ac4464034
--- /dev/null
+++ b/flux2/cluster/optional/velero/velero.yaml
@@ -0,0 +1,26 @@
+---
+apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
+kind: Kustomization
+metadata:
+  name: velero
+  namespace: flux-system
+spec:
+  interval: 1h
+  dependsOn:
+    - name: core
+    - name: infrastructure
+  sourceRef:
+    kind: GitRepository
+    name: openappstack
+  path: ./flux2/apps/velero
+  prune: true
+  validation: client
+  # healthChecks:
+  #   - apiVersion: helm.toolkit.fluxcd.io/v1beta1
+  #     kind: HelmRelease
+  #     name: podinfo
+  #     namespace: podinfo
+  postBuild:
+    substituteFrom:
+      - kind: Secret
+        name: oas-cluster-variables
diff --git a/flux2/cluster/optional/wordpress/wordpress.yaml b/flux2/cluster/optional/wordpress/wordpress.yaml
new file mode 100644
index 000000000..f6017a099
--- /dev/null
+++ b/flux2/cluster/optional/wordpress/wordpress.yaml
@@ -0,0 +1,25 @@
+---
+apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
+kind: Kustomization
+metadata:
+  name: wordpress
+  namespace: flux-system
+spec:
+  interval: 1h
+  dependsOn:
+    - name: core
+    - name: infrastructure
+  sourceRef:
+    kind: GitRepository
+    name: openappstack
+  path: ./flux2/apps/wordpress
+  prune: true
+  validation: client
+  postBuild:
+    substituteFrom:
+      - kind: Secret
+        name: oas-wordpress-variables
+      - kind: Secret
+        name: oas-oauth-variables
+      - kind: Secret
+        name: oas-cluster-variables
-- 
GitLab