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:
@@ -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
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- ingress.yaml
|
||||
- ingress.yaml
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: goldilocks
|
||||
labels:
|
||||
goldilocks.fairwinds.com/enabled: "true"
|
||||
Reference in New Issue
Block a user