From f25b020807a72d36a96afc8897305bbef3d36736 Mon Sep 17 00:00:00 2001 From: Steven Kreitzer Date: Sat, 11 Jan 2025 09:34:50 -0600 Subject: [PATCH] chore(flux): adding common metadata --- kubernetes/flux/cluster/ks.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/kubernetes/flux/cluster/ks.yaml b/kubernetes/flux/cluster/ks.yaml index bc5b0f7e4..b35cff0fc 100644 --- a/kubernetes/flux/cluster/ks.yaml +++ b/kubernetes/flux/cluster/ks.yaml @@ -2,21 +2,24 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: - name: cluster-meta + name: &app cluster-meta namespace: flux-system spec: targetNamespace: flux-system + commonMetadata: + labels: + app.kubernetes.io/name: *app path: ./kubernetes/flux/meta prune: true sourceRef: kind: GitRepository name: flux-system + wait: true + interval: 30m decryption: provider: sops secretRef: name: sops-age - wait: true - interval: 30m --- apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization @@ -31,12 +34,12 @@ spec: sourceRef: kind: GitRepository name: flux-system + wait: false + interval: 30m decryption: provider: sops secretRef: name: sops-age - wait: false - interval: 30m postBuild: substituteFrom: - kind: ConfigMap