REFACTOR(goldilocks): use managedNsMeta for Goldil

- Remove namespace.yaml files
- Add managedNamespaceMetadata with Goldilocks label
- Set CreateNamespace=true in syncOptions
- Update kustomization.yaml to remove namespace.yaml references
This commit is contained in:
2025-12-29 15:57:46 +09:00
parent 0996187c82
commit 19adcadfdf
15 changed files with 111 additions and 171 deletions

View File

@@ -4,46 +4,43 @@ metadata:
name: umami
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
- resources-finalizer.argocd.argoproj.io
spec:
project: default
sources:
- repoURL: https://charts.christianhuth.de
chart: umami
targetRevision: 6.0.1
helm:
valueFiles:
- $values/umami/helm-values.yaml
- repoURL: https://gitea0213.kro.kr/bluemayne/applications.git
targetRevision: main
ref: values
- repoURL: https://gitea0213.kro.kr/bluemayne/applications.git
targetRevision: main
path: umami
- repoURL: https://charts.christianhuth.de
chart: umami
targetRevision: 6.0.1
helm:
valueFiles:
- $values/umami/helm-values.yaml
- repoURL: https://gitea0213.kro.kr/bluemayne/applications.git
targetRevision: main
ref: values
- repoURL: https://gitea0213.kro.kr/bluemayne/applications.git
targetRevision: main
path: umami
destination:
server: https://kubernetes.default.svc
namespace: umami
ignoreDifferences:
# Ignore app-secret data changes in umami-app-secret
# Helm chart generates random app-secret value on each sync,
# causing ArgoCD to detect it as OutOfSync
- group: ""
kind: Secret
name: umami-app-secret
jsonPointers:
- /data
- group: ''
kind: Secret
name: umami-app-secret
jsonPointers:
- /data
syncPolicy:
automated:
prune: true
selfHeal: true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
managedNamespaceMetadata:
labels:
goldilocks.fairwinds.com/enabled: 'true'
syncOptions:
- CreateNamespace=true

View File

@@ -1,7 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- vault/umami-password.yaml
- ingress.yaml
- vault/umami-password.yaml
- ingress.yaml

View File

@@ -1,6 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: umami
labels:
goldilocks.fairwinds.com/enabled: "true"