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

Remove cluster-wide namespace list/watch permissions #3880

Merged
merged 1 commit into from
Apr 15, 2021

Conversation

imjasonh
Copy link
Member

This permission was previously needed to support how we enforced
timeouts, by listing all TaskRuns/PipelineRuns across all namespaces and
determining whether they were past their timeout. Since
#3500 this check was changed
to not require listing all namespaces, so I believe the permission is no
longer necessary.

/kind cleanup

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • [n] Docs included if any changes are user facing
  • [n] Tests included if any functionality added or changed
  • [y] Follows the commit message standard
  • [y] Meets the Tekton contributor standards (including
    functionality, content, code)
  • [y] Release notes block below has been filled in or deleted (only if no user facing changes)

Release Notes

The controller SA no longer requests cluster-wide permission to list and watch namespaces.

This permission was previously needed to support how we enforced
timeouts, by listing all TaskRuns/PipelineRuns across all namespaces and
determining whether they were past their timeout. Since
tektoncd#3500 this check was changed
to not require listing all namespaces, so I believe the permission is no
longer necessary.
@imjasonh imjasonh requested a review from a user April 14, 2021 13:48
@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Apr 14, 2021
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 14, 2021
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbwsg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ghost
Copy link

ghost commented Apr 14, 2021

Nice!

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 14, 2021
@pritidesai
Copy link
Member

great find 🎉

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 15, 2021
@tekton-robot tekton-robot merged commit c05622f into tektoncd:main Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants