REFACTOR(goldilocks): use managedNamespaceMetadata for namespace 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:
@@ -7,40 +7,35 @@ metadata:
|
|||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
spec:
|
spec:
|
||||||
project: default
|
project: default
|
||||||
|
|
||||||
sources:
|
sources:
|
||||||
# Helm chart from external repository
|
|
||||||
- repoURL: https://charts.external-secrets.io
|
- repoURL: https://charts.external-secrets.io
|
||||||
chart: external-secrets
|
chart: external-secrets
|
||||||
targetRevision: 0.10.5
|
targetRevision: 0.10.5
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/external-secrets/helm-values.yaml
|
- $values/external-secrets/helm-values.yaml
|
||||||
# Values file from Git repository
|
|
||||||
- repoURL: https://gitea0213.kro.kr/bluemayne/cluster-infrastructure.git
|
- repoURL: https://gitea0213.kro.kr/bluemayne/cluster-infrastructure.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
|
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: external-secrets
|
namespace: external-secrets
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
resources: []
|
||||||
resources:
|
|
||||||
- namespace.yaml
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: external-secrets
|
|
||||||
labels:
|
|
||||||
goldilocks.fairwinds.com/enabled: "true"
|
|
||||||
@@ -7,9 +7,7 @@ metadata:
|
|||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
spec:
|
spec:
|
||||||
project: default
|
project: default
|
||||||
|
|
||||||
source:
|
source:
|
||||||
# Helm chart from Falcosecurity repository
|
|
||||||
repoURL: https://falcosecurity.github.io/charts
|
repoURL: https://falcosecurity.github.io/charts
|
||||||
chart: falco
|
chart: falco
|
||||||
targetRevision: 4.20.0
|
targetRevision: 4.20.0
|
||||||
@@ -81,17 +79,14 @@ spec:
|
|||||||
key: node-role.kubernetes.io/master
|
key: node-role.kubernetes.io/master
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
key: node-role.kubernetes.io/control-plane
|
key: node-role.kubernetes.io/control-plane
|
||||||
|
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: falco
|
namespace: falco
|
||||||
|
|
||||||
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
|
||||||
@@ -99,23 +94,22 @@ spec:
|
|||||||
- ServerSideApply=true
|
- ServerSideApply=true
|
||||||
- RespectIgnoreDifferences=true
|
- RespectIgnoreDifferences=true
|
||||||
- ApplyOutOfSyncOnly=true
|
- ApplyOutOfSyncOnly=true
|
||||||
|
|
||||||
retry:
|
retry:
|
||||||
limit: 5
|
limit: 5
|
||||||
backoff:
|
backoff:
|
||||||
duration: 5s
|
duration: 5s
|
||||||
factor: 2
|
factor: 2
|
||||||
maxDuration: 3m
|
maxDuration: 3m
|
||||||
|
managedNamespaceMetadata:
|
||||||
# Ignore StatefulSet differences managed by Kubernetes
|
labels:
|
||||||
|
goldilocks.fairwinds.com/enabled: 'true'
|
||||||
ignoreDifferences:
|
ignoreDifferences:
|
||||||
- group: apps
|
- group: apps
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
jqPathExpressions:
|
jqPathExpressions:
|
||||||
- '.spec.persistentVolumeClaimRetentionPolicy'
|
- .spec.persistentVolumeClaimRetentionPolicy
|
||||||
- '.spec.volumeClaimTemplates[].metadata.creationTimestamp'
|
- .spec.volumeClaimTemplates[].metadata.creationTimestamp
|
||||||
- '.spec.volumeClaimTemplates[].status'
|
- .spec.volumeClaimTemplates[].status
|
||||||
- '.spec.volumeClaimTemplates[].apiVersion'
|
- .spec.volumeClaimTemplates[].apiVersion
|
||||||
- '.spec.volumeClaimTemplates[].kind'
|
- .spec.volumeClaimTemplates[].kind
|
||||||
|
|
||||||
revisionHistoryLimit: 10
|
revisionHistoryLimit: 10
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- vault/falco-ui-secret.yaml
|
||||||
- vault/falco-ui-secret.yaml
|
- ingress.yaml
|
||||||
- ingress.yaml
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: falco
|
|
||||||
labels:
|
|
||||||
goldilocks.fairwinds.com/enabled: "true"
|
|
||||||
@@ -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://helm.releases.hashicorp.com
|
- repoURL: https://helm.releases.hashicorp.com
|
||||||
chart: vault
|
chart: vault
|
||||||
@@ -21,27 +20,25 @@ spec:
|
|||||||
- repoURL: https://gitea0213.kro.kr/bluemayne/cluster-infrastructure.git
|
- repoURL: https://gitea0213.kro.kr/bluemayne/cluster-infrastructure.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: vault
|
path: vault
|
||||||
|
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: vault
|
namespace: vault
|
||||||
|
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
allowEmpty: false
|
allowEmpty: false
|
||||||
|
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=false
|
- CreateNamespace=true
|
||||||
- PrunePropagationPolicy=foreground
|
- PrunePropagationPolicy=foreground
|
||||||
- PruneLast=true
|
- PruneLast=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
|
||||||
|
|||||||
@@ -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-secret-store.yaml
|
||||||
- cluster-secret-store.yaml
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: vault
|
|
||||||
labels:
|
|
||||||
goldilocks.fairwinds.com/enabled: "true"
|
|
||||||
Reference in New Issue
Block a user