Sync Policy: Every Field, Every Sync Option, Every Annotation
58%
Adding Labels and Annotations to the Application Namespace
Argo CD lets you set labels and annotations on the application namespace through the managedNamespaceMetadata field. This field is only effective if CreateNamespace=true is set in the syncOptions. Here is an example:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: todo-app
namespace: argocd
spec:
destination:
namespace: default
server: https://kubernetes.default.svc
project: default
source:
path: manifests
repoURL: $GITLAB_URL
targetRevision: mainGitOps the Hard Way, with Argo CD
Build Real GitOps Pipelines From Empty Clusters to Automated DeploysEnroll now to unlock all content and receive all future updates for free.
