Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Missing RBAC rules for finalizers #357

Merged
merged 3 commits into from
Apr 15, 2019
Merged

Missing RBAC rules for finalizers #357

merged 3 commits into from
Apr 15, 2019

Conversation

matzew
Copy link
Member

@matzew matzew commented Apr 15, 2019

At least on OpenShift, which has fairly restrictive RBAC out of the
box, the sources are missing a RBAC rules that
requires permissions on the different *sources/finalizers resource.

See also #318

/cc @evankanderson

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Apr 15, 2019
@knative-prow-robot knative-prow-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 15, 2019
@matzew
Copy link
Member Author

matzew commented Apr 15, 2019

/test pull-knative-eventing-sources-integration-tests

- sources.eventing.knative.dev
resources:
- '*/finalizers'
verbs:
Copy link
Contributor

Choose a reason for hiding this comment

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

verbs: *everything

- apiGroups:
- sources.eventing.knative.dev
resources:
- '*/finalizers'
Copy link
Contributor

Choose a reason for hiding this comment

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

there is not another example of * in all of knative, I think we should be explicit.

@knative-prow-robot knative-prow-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 15, 2019
@matzew
Copy link
Member Author

matzew commented Apr 15, 2019

@n3wscott I am explicit now :-)

- cronjobsources/finalizers
- githubsources/finalizers
- kuberneteseventsources/finalizers
verbs: &everything
Copy link
Contributor

Choose a reason for hiding this comment

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

change this to verbs: *everything

you are redefining the magic everything yaml tag

Copy link
Contributor

@n3wscott n3wscott left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 15, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: matzew, n3wscott

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 15, 2019
@knative-prow-robot knative-prow-robot merged commit fc83738 into knative:master Apr 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants