From 18b11570e242b9d0ce11efa93b38a2cb4e015909 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Mon, 10 Apr 2023 00:44:31 -0400 Subject: [PATCH] Move cluster secrets to secrets folder --- cluster/base/ks.yaml | 16 ++++++++++++++++ .../{base => secrets}/cluster-secrets.sops.yaml | 0 cluster/{base => secrets}/cluster-settings.yaml | 0 cluster/secrets/kustomization.yaml | 5 +++++ 4 files changed, 21 insertions(+) rename cluster/{base => secrets}/cluster-secrets.sops.yaml (100%) rename cluster/{base => secrets}/cluster-settings.yaml (100%) create mode 100644 cluster/secrets/kustomization.yaml diff --git a/cluster/base/ks.yaml b/cluster/base/ks.yaml index 6f62c10..8c8cd15 100644 --- a/cluster/base/ks.yaml +++ b/cluster/base/ks.yaml @@ -1,5 +1,19 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 kind: Kustomization +metadata: + name: cluster-secrets + namespace: flux-system +spec: + timeout: 5m + interval: 10m + path: ./cluster/secrets + prune: true + sourceRef: + kind: GitRepository + name: flux-system +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 +kind: Kustomization metadata: name: crds namespace: flux-system @@ -22,6 +36,7 @@ spec: interval: 10m dependsOn: - name: crds + - name: cluster-secrets path: ./cluster/core prune: false sourceRef: @@ -49,6 +64,7 @@ spec: interval: 10m dependsOn: - name: core + - name: cluster-secrets path: ./cluster/apps prune: true sourceRef: diff --git a/cluster/base/cluster-secrets.sops.yaml b/cluster/secrets/cluster-secrets.sops.yaml similarity index 100% rename from cluster/base/cluster-secrets.sops.yaml rename to cluster/secrets/cluster-secrets.sops.yaml diff --git a/cluster/base/cluster-settings.yaml b/cluster/secrets/cluster-settings.yaml similarity index 100% rename from cluster/base/cluster-settings.yaml rename to cluster/secrets/cluster-settings.yaml diff --git a/cluster/secrets/kustomization.yaml b/cluster/secrets/kustomization.yaml new file mode 100644 index 0000000..970b3ed --- /dev/null +++ b/cluster/secrets/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ./cluster-secrets.sops.yaml +- ./cluster-settings.yaml \ No newline at end of file