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

Restore gateway pod privileges #2214

Merged
merged 2 commits into from
Aug 29, 2022
Merged

Conversation

tpantelis
Copy link
Contributor

The gateway is failing trying to update labels on its own pod:

main.go:416] Error updating pod label: Error patching own pod "submariner-gateway-jqc9v"...forbidden: User "system:serviceaccount:submariner-operator:submariner-gateway" cannot patch resource "pods"

PR #2008 removed the "pods" privilege for the gateway role but it turns out it's needed.

The gateway is failing trying to update labels on its own pod:

main.go:416] Error updating pod label: Error patching own pod
"submariner-gateway-jqc9v"...forbidden: User
"system:serviceaccount:submariner-operator:submariner-gateway"
cannot patch resource "pods"

PR submariner-io#2008
removed the "pods" privilege for the gateway role but it turns out
it's needed.

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
@tpantelis tpantelis self-assigned this Aug 26, 2022
@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr2214/tpantelis/gateway_pod_privs
🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.

@tpantelis tpantelis added the ready-to-test When a PR is ready for full E2E testing label Aug 29, 2022
@skitt skitt enabled auto-merge (rebase) August 29, 2022 08:08
@skitt skitt merged commit d4f5001 into submariner-io:devel Aug 29, 2022
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr2214/tpantelis/gateway_pod_privs]

@tpantelis tpantelis deleted the gateway_pod_privs branch September 22, 2022 14:55
skitt added a commit to skitt/submariner-operator that referenced this pull request Nov 3, 2022
... including follow-up partial reverts in submariner-io#2214 and submariner-io#2225.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
skitt added a commit to skitt/submariner-operator that referenced this pull request Nov 3, 2022
... including follow-up partial reverts in submariner-io#2214 and submariner-io#2225.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
tpantelis pushed a commit that referenced this pull request Nov 3, 2022
... including follow-up partial reverts in #2214 and #2225.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
dfarrell07 added a commit to dfarrell07/submariner-operator that referenced this pull request Nov 10, 2022
The submariner-gateway RBAC for pods duplicates the get permission, as
it's granted * elsewhere.

This was recently modified in submariner-io#2214 and submariner-io#2008.

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
dfarrell07 added a commit to dfarrell07/submariner-operator that referenced this pull request Nov 10, 2022
The submariner-gateway RBAC for pods duplicates the get permission, as
it's granted * elsewhere.

This was recently modified in submariner-io#2214 and submariner-io#2008.

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
dfarrell07 added a commit to dfarrell07/submariner-operator that referenced this pull request Nov 11, 2022
The  RBAC for pods duplicates the get permission, as it's granted *
elsewhere.

This was recently modified in submariner-io#2225, submariner-io#2214, and submariner-io#2008.

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
sridhargaddam pushed a commit to dfarrell07/submariner-operator that referenced this pull request Dec 17, 2022
The  RBAC for pods duplicates the get permission, as it's granted *
elsewhere.

This was recently modified in submariner-io#2225, submariner-io#2214, and submariner-io#2008.

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-test When a PR is ready for full E2E testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants