Skip to content

Instantly share code, notes, and snippets.

View fredleger's full-sized avatar
🏠
Working from home

Frederic Leger fredleger

🏠
Working from home
View GitHub Profile
@fredleger
fredleger / mutate-rancher-secrets-webhookconfiguration.yaml
Created August 18, 2025 12:20 — forked from rverchere/mutate-rancher-secrets-webhookconfiguration.yaml
Kyverno ClusterPolicy Rancher Secrets Webhookconfiguration
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: mutate-rancher-secrets-webhookconfiguration
annotations:
policies.kyverno.io/title: Filter Rancher secrets WebhookConfiguration
policies.kyverno.io/description: >-
Filter Rancher WebhookConfiguration to match secrets not in the `kube-system` namespace
spec:
mutateExistingOnPolicyUpdate: true