homelab-gitops/management/platform-apps/kyverno-policies.yaml
gwg313 933b93da76
add tekton
Signed-off-by: gwg313 <gwg313@pm.me>
2026-05-19 00:23:50 -04:00

25 lines
641 B
YAML

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
- Force=true