mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
24 lines
512 B
YAML
24 lines
512 B
YAML
|
apiVersion: kyverno.io/v1
|
||
|
kind: ClusterPolicy
|
||
|
metadata:
|
||
|
name: mutate-pods-spec
|
||
|
spec:
|
||
|
rules:
|
||
|
- name: "disable-servicelink-and-token"
|
||
|
match:
|
||
|
resources:
|
||
|
kinds:
|
||
|
- DaemonSet
|
||
|
- Deployment
|
||
|
- Job
|
||
|
- StatefulSet
|
||
|
namespaces:
|
||
|
- test-foo-*
|
||
|
mutate:
|
||
|
overlay:
|
||
|
spec:
|
||
|
template:
|
||
|
spec:
|
||
|
automountServiceAccountToken: false
|
||
|
enableServiceLinks: false
|