REFACTOR(goldilocks): use managedNS for labels

- 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 521d5491ff
commit 1d7970a42f
4 changed files with 23 additions and 37 deletions

View File

@@ -1,7 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- namespace.yaml - argocd-cmd-params-cm.yaml
- argocd-cmd-params-cm.yaml - ingress.yaml
- ingress.yaml

View File

@@ -7,7 +7,6 @@ metadata:
- resources-finalizer.argocd.argoproj.io - resources-finalizer.argocd.argoproj.io
spec: spec:
project: default project: default
sources: sources:
- repoURL: https://charts.jetstack.io - repoURL: https://charts.jetstack.io
chart: cert-manager chart: cert-manager
@@ -21,29 +20,26 @@ spec:
- repoURL: https://gitea0213.kro.kr/bluemayne/cluster-infrastructure.git - repoURL: https://gitea0213.kro.kr/bluemayne/cluster-infrastructure.git
targetRevision: main targetRevision: main
path: cert-manager path: cert-manager
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
namespace: cert-manager namespace: cert-manager
syncPolicy: syncPolicy:
automated: automated:
prune: true prune: true
selfHeal: true selfHeal: true
allowEmpty: false allowEmpty: false
syncOptions: syncOptions:
- CreateNamespace=true - CreateNamespace=true
- PrunePropagationPolicy=foreground - PrunePropagationPolicy=foreground
- PruneLast=true - PruneLast=true
- ServerSideApply=true - ServerSideApply=true
retry: retry:
limit: 5 limit: 5
backoff: backoff:
duration: 5s duration: 5s
factor: 2 factor: 2
maxDuration: 3m maxDuration: 3m
managedNamespaceMetadata:
labels:
goldilocks.fairwinds.com/enabled: 'true'
revisionHistoryLimit: 10 revisionHistoryLimit: 10

View File

@@ -1,6 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- namespace.yaml - cluster-issuer.yaml
- cluster-issuer.yaml

View File

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