mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2026-09-13 20:51:14 +00:00
20 lines
573 B
YAML
20 lines
573 B
YAML
---
|
|
# Flux Kustomization for Kyverno ClusterPolicies.
|
|
# dependsOn "kyverno" (the controller + CRDs) so the kyverno.io/v2 CRD exists
|
|
# before Flux dry-runs the ClusterPolicy. Without this split, Flux fails the
|
|
# whole Kustomization at dry-run ("no matches for kind ClusterPolicy").
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
kind: Kustomization
|
|
metadata:
|
|
name: kyverno-policies
|
|
namespace: flux-system
|
|
spec:
|
|
interval: 5m
|
|
prune: true
|
|
sourceRef:
|
|
kind: GitRepository
|
|
name: homeprod
|
|
path: ./kubernetes/system/kyverno-policies
|
|
dependsOn:
|
|
- name: kyverno
|