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

Add delete configmap privilege to fix distribution report cleanup #664

Merged
merged 1 commit into from Oct 25, 2022

Conversation

luksa
Copy link
Contributor

@luksa luksa commented Oct 25, 2022

This fixes the following error during istiod shutdown when PILOT_ENABLE_STATUS=true:

error status failed to properly clean up distribution report: configmaps "istiod-649887579d-rck66-distribution" is forbidden: User "system:serviceaccount:istio-system:istiod" cannot delete resource "configmaps" in API group "" in the namespace "istio-system"

@luksa
Copy link
Contributor Author

luksa commented Oct 25, 2022

/retest

@jewertow
Copy link
Member

Since distribution reports are created in the same namespace as istiod is deployed, couldn't this permission be added to istiod role instead of cluster role?

@dgn
Copy link
Contributor

dgn commented Oct 25, 2022

Strange that this permission doesn't exist upstream- it likely affects them, too

@luksa
Copy link
Contributor Author

luksa commented Oct 25, 2022

@jewertow Good catch. I'll update the PR. I've also submitted this upstream: istio/istio#41621

This fixes the following error during istiod shutdown when PILOT_ENABLE_STATUS=true:

error   status  failed to properly clean up distribution report: configmaps "istiod-649887579d-rck66-distribution" is forbidden: User "system:serviceaccount:istio-system:istiod" cannot delete resource "configmaps" in API group "" in the namespace "istio-system"
@maistra-bot maistra-bot merged commit 23380f0 into maistra:maistra-2.3 Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants