REFACTOR(goldilocks): use managedNamespaceMetad...

- 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:47 +09:00
parent ac2abde8b5
commit 5ec1a3323d
27 changed files with 164 additions and 271 deletions

View File

@@ -4,51 +4,44 @@ metadata:
name: goldilocks
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
- resources-finalizer.argocd.argoproj.io
spec:
project: default
sources:
# Helm chart from external repository
- repoURL: https://charts.fairwinds.com/stable
chart: goldilocks
targetRevision: 8.0.2
helm:
valueFiles:
- $values/goldilocks/helm-values.yaml
# Values file from Git repository
- repoURL: https://gitea0213.kro.kr/bluemayne/monitoring.git
targetRevision: main
ref: values
- repoURL: https://charts.fairwinds.com/stable
chart: goldilocks
targetRevision: 8.0.2
helm:
valueFiles:
- $values/goldilocks/helm-values.yaml
- repoURL: https://gitea0213.kro.kr/bluemayne/monitoring.git
targetRevision: main
ref: values
destination:
server: https://kubernetes.default.svc
namespace: goldilocks
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false
syncOptions:
- CreateNamespace=true
- PrunePropagationPolicy=foreground
- PruneLast=true
- RespectIgnoreDifferences=true
- CreateNamespace=true
- PrunePropagationPolicy=foreground
- PruneLast=true
- RespectIgnoreDifferences=true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
# Ignore Deployment differences for CPU limits (set to null)
managedNamespaceMetadata:
labels:
goldilocks.fairwinds.com/enabled: 'true'
ignoreDifferences:
- group: apps
kind: Deployment
jqPathExpressions:
- '.spec.template.spec.containers[].resources.limits.cpu'
- group: apps
kind: Deployment
jqPathExpressions:
- .spec.template.spec.containers[].resources.limits.cpu
revisionHistoryLimit: 10