From 13dbc1f2bad23a232e4dc2203a881cf56625574c Mon Sep 17 00:00:00 2001 From: Shivkumar Dudhani Date: Fri, 10 Jan 2020 08:02:41 -0800 Subject: [PATCH] update doc (#608) * update doc * update variable name --- README.md | 2 ++ documentation/writing-policies.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a7f8c4e01d..65f79665d2 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/documentation/writing-policies.md b/documentation/writing-policies.md index 17d6932599..60ccf5beb2 100644 --- a/documentation/writing-policies.md +++ b/documentation/writing-policies.md @@ -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