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:
@@ -4,49 +4,44 @@ metadata:
|
||||
name: docusaurus
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
project: default
|
||||
|
||||
sources:
|
||||
- repoURL: https://gitea0213.kro.kr/bluemayne/applications.git
|
||||
targetRevision: main
|
||||
path: docusaurus
|
||||
|
||||
- repoURL: https://gitea0213.kro.kr/bluemayne/applications.git
|
||||
targetRevision: main
|
||||
path: docusaurus
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: docusaurus
|
||||
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
allowEmpty: false
|
||||
|
||||
syncOptions:
|
||||
- PrunePropagationPolicy=foreground
|
||||
- PruneLast=true
|
||||
|
||||
- CreateNamespace=true
|
||||
- PrunePropagationPolicy=foreground
|
||||
- PruneLast=true
|
||||
retry:
|
||||
limit: 5
|
||||
backoff:
|
||||
duration: 5s
|
||||
factor: 2
|
||||
maxDuration: 3m
|
||||
|
||||
managedNamespaceMetadata:
|
||||
labels:
|
||||
goldilocks.fairwinds.com/enabled: 'true'
|
||||
revisionHistoryLimit: 10
|
||||
|
||||
# Ignore differences in checksum annotations and manual restart annotations
|
||||
ignoreDifferences:
|
||||
- group: apps
|
||||
kind: Deployment
|
||||
jqPathExpressions:
|
||||
- .spec.template.metadata.annotations
|
||||
- .metadata.annotations
|
||||
|
||||
- group: ""
|
||||
kind: Service
|
||||
name: docusaurus
|
||||
namespace: docusaurus
|
||||
jsonPointers:
|
||||
- /spec/clusterIP
|
||||
- group: apps
|
||||
kind: Deployment
|
||||
jqPathExpressions:
|
||||
- .spec.template.metadata.annotations
|
||||
- .metadata.annotations
|
||||
- group: ''
|
||||
kind: Service
|
||||
name: docusaurus
|
||||
namespace: docusaurus
|
||||
jsonPointers:
|
||||
- /spec/clusterIP
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
|
||||
- namespace.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
namespace: docusaurus
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: docusaurus
|
||||
labels:
|
||||
goldilocks.fairwinds.com/enabled: "true"
|
||||
Reference in New Issue
Block a user