1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

update doc (#608)

* update doc

* update variable name
This commit is contained in:
Shivkumar Dudhani 2020-01-10 08:02:41 -08:00 committed by GitHub
parent 3f965a245b
commit 13dbc1f2ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -106,6 +106,8 @@ spec:
generate:
kind: ConfigMap
name: zk-kafka-address
# create the resource in the new namespace
namespace: "{{request.object.name}}"
data:
kind: ConfigMap
data:

View file

@ -76,7 +76,7 @@ spec :
- key: name # compares (key operator value)
operator: Equal
value: name # constant "name" == "name"
- key: "{{serviceAccount}}" # refer to a pre-defined variable serviceAccount
- key: "{{serviceAccountName}}" # refer to a pre-defined variable serviceAccountName
operator: NotEqual
value: "user1" # if service
# Each rule can contain a single validate, mutate, or generate directive