diff --git a/samples/RequirePodProbes.md b/samples/RequirePodProbes.md index e6fe00df27..dff85114ae 100644 --- a/samples/RequirePodProbes.md +++ b/samples/RequirePodProbes.md @@ -13,6 +13,8 @@ apiVersion: kyverno.io/v1 kind: ClusterPolicy metadata: name: require-pod-probes + annotations: + pod-policies.kyverno.io/autogen-controllers: DaemonSet,Deployment,StatefulSet spec: validationFailureAction: audit rules: diff --git a/samples/best_practices/require_probes.yaml b/samples/best_practices/require_probes.yaml index 55b5afc2b7..a87d37aee2 100644 --- a/samples/best_practices/require_probes.yaml +++ b/samples/best_practices/require_probes.yaml @@ -3,6 +3,7 @@ kind: ClusterPolicy metadata: name: require-pod-probes annotations: + pod-policies.kyverno.io/autogen-controllers: DaemonSet,Deployment,StatefulSet policies.kyverno.io/category: Workload Management policies.kyverno.io/description: Liveness and readiness probes need to be configured to correctly manage a pods lifecycle during deployments, restarts, and upgrades. For each