apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: kyverno-policies namespace: argocd annotations: argoproj.io/sync-wave: "-5" spec: project: default source: repoURL: https://github.com/gwg313/homelab-gitops.git targetRevision: main path: platform/kyverno/policies destination: server: https://kubernetes.default.svc namespace: kyverno syncPolicy: automated: prune: true selfHeal: true syncOptions: - CreateNamespace=false - ServerSideApply=true - Replace=true # <-- Policies have immutable fields so this helps deal with updates