What does `CreateNamespace=true` do, and what does `managedNamespaceMetadata` add?
BeginnerConceptThe Application CRD & Sync Policies
Answer
CreateNamespace=true makes Argo CD create the destination namespace if it does not exist. managedNamespaceMetadata lets you set labels and annotations on that namespace (for example Pod Security Admission labels or a team label):
syncPolicy:
syncOptions: [CreateNamespace=true]
managedNamespaceMetadata:
labels:
pod-security.kubernetes.io/enforce: restricted
The project must allow the Namespace kind in clusterResourceWhitelist.
More on The Application CRD & Sync Policies
Walk through the key fields of an Argo CD `Application`.BeginnerWhat values can `targetRevision` take?BeginnerWhat is the difference between `destination.server` and `destination.name`?BeginnerWhat does `syncPolicy.automated` do, and what are its sub-fields?BeginnerWhy is `prune` disabled by default?BeginnerExplain `selfHeal`. When might you not want it?Intermediate