Skip to content

Undo resourceName restriction on leader election role #1554

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

Merged
merged 1 commit into from
Oct 25, 2020
Merged
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions config/rbac/leader_election_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ rules:
- ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep the resource name for get, patch, update. Use this:

metadata:
  name: controller-leader-election-role
rules:
- apiGroups:
  - ""
  resources:
  - configmaps
  verbs:
  - list
  - watch
  - create
- apiGroups:
  - ""
  resources:
  - configmaps
  resourceNames:
  - aws-load-balancer-controller-leader
  verbs:
  - get
  - update
  - patch

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fawadkhaliq
I restricted them via #1555.

resources:
- configmaps
resourceNames:
- aws-load-balancer-controller-leader
verbs:
- create
- get
Expand Down
2 changes: 0 additions & 2 deletions docs/install/v2_0_0_full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,6 @@ metadata:
rules:
- apiGroups:
- ""
resourceNames:
- aws-load-balancer-controller-leader
resources:
- configmaps
verbs:
Expand Down