mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 01:46:55 +00:00
21 lines
456 B
YAML
21 lines
456 B
YAML
|
# A file with no reserved name "assert" or "errors" will be created with the below contents. Can be multiple YAML docs in the same file.
|
||
|
apiVersion: kyverno.io/v1
|
||
|
kind: ClusterPolicy
|
||
|
metadata:
|
||
|
name: add-labels
|
||
|
spec:
|
||
|
rules:
|
||
|
- name: add-labels
|
||
|
match:
|
||
|
resources:
|
||
|
kinds:
|
||
|
- Pod
|
||
|
- Service
|
||
|
- ConfigMap
|
||
|
- Secret
|
||
|
mutate:
|
||
|
patchStrategicMerge:
|
||
|
metadata:
|
||
|
labels:
|
||
|
foo: bar
|