-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: remove multi level claim reference (#32613)
* docs: remove multi level claim reference * fix ref
- Loading branch information
1 parent
cf3bf18
commit b654e1d
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,7 +207,7 @@ email: "[email protected]" | |
# Alice is a member of groups admins and devs | ||
groups: ["admins", "devs"] | ||
# She can access prod and staging environments | ||
access: {"env": ["prod", "staging"]} | ||
env: ["prod", "staging"] | ||
``` | ||
|
||
Let's create a role template called `sso-users` that expects external attribute | ||
|
@@ -319,7 +319,7 @@ email: "[email protected]" | |
# Alice is a member of groups admins and devs | ||
groups: ["admins", "devs"] | ||
# She can access prod and staging environments | ||
access: {"env": ["prod", "staging"]} | ||
env: ["prod", "staging"] | ||
``` | ||
|
||
Let's see how these variables are used with role template `interpolation`: | ||
|
@@ -343,11 +343,11 @@ spec: | |
# Functions transform variables. | ||
database_users: ['{{email.local(external.email)}}'] | ||
db_labels: | ||
'env': '{{regexp.replace(external.access["env"], "^(staging)$", "$1")}}' | ||
'env': '{{regexp.replace(external.env, "^(staging)$", "$1")}}' | ||
# Labels can mix template and hard-coded values. | ||
node_labels: | ||
'env': '{{external.access["env"]}}' | ||
'env': '{{external.env}}' | ||
'region': 'us-west-2' | ||
kubernetes_labels: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters