Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: remove deny nodes in impersonation examples #47847

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions docs/pages/admin-guides/access-controls/guides/impersonation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ spec:
users: ['jenkins']
roles: ['jenkins']

# The deny section uses the identical format as the 'allow' section.
# The deny rules always override allow rules.
deny:
node_labels:
'*': '*'
```

Create the `role` resource:
Expand Down Expand Up @@ -207,12 +202,6 @@ spec:
where: >
equals(impersonate_role.metadata.labels["group"], "security") &&
equals(impersonate_user.metadata.labels["group"], "security")
# The deny section uses the identical format as the 'allow' section.
# The deny rules always override allow rules.
deny:
node_labels:
'*': '*'
```
Create the resources:
Expand Down Expand Up @@ -285,12 +274,6 @@ spec:
where: >
contains(user.spec.traits["group"], impersonate_role.metadata.labels["group"]) &&
contains(user.spec.traits["group"], impersonate_user.metadata.labels["group"])
# The deny section uses the identical format as the 'allow' section.
# The deny rules always override allow rules.
deny:
node_labels:
'*': '*'
```

While user traits typically come from an external identity provider, we can test
Expand Down
Loading