mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
add annotation to ns (#621)
This commit is contained in:
parent
dabe592d46
commit
af824f28b0
1 changed files with 10 additions and 0 deletions
|
@ -8,6 +8,16 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
background: false
|
background: false
|
||||||
rules:
|
rules:
|
||||||
|
- name: add-sa-annotation
|
||||||
|
match:
|
||||||
|
resources:
|
||||||
|
kinds:
|
||||||
|
- Namespace
|
||||||
|
mutate:
|
||||||
|
overlay:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
nirmata.io/ns-creator: "{{serviceAccountName}}"
|
||||||
- name: generate-owner-role
|
- name: generate-owner-role
|
||||||
match:
|
match:
|
||||||
resources:
|
resources:
|
||||||
|
|
Loading…
Add table
Reference in a new issue