Skip to content
This repository was archived by the owner on Jun 24, 2020. It is now read-only.

Conversation

@Cynocracy
Copy link
Contributor

This allows us to take advantage of the permissions granted to cluster admins
when performing cleanup. If the approach in #291
is approved, this will become necessary. Additionally, it makes sense to remove roles as the final
step to allow human Operators to modify any resources they may have permissions on as a result of the Knative installation (that is, we should not remove any access until we are 'almost done' cleaning up).

/lint

Proposed Changes

  • Delete roles and rolebindings as a final cleanup step.

Release Note

Delete roles and rolebindings as a final cleanup step.

Jon Donovan added 2 commits March 12, 2020 13:13
This allows us to take advantage of the permissions granted to cluster admins
when performing cleanup. If the approach in knative#291
is approved, this will become necessary. Additionally, it makes sense to remove roles as the final
step to allow human Operators to modify any resources they may have permissions on as a result of the
Knative installation (that is, we should not remove any access until we are 'almost done' cleaning up).
Copy link
Contributor

@knative-prow-robot knative-prow-robot left a comment

Choose a reason for hiding this comment

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

@Cynocracy: 0 warnings.

Details

In response to this:

This allows us to take advantage of the permissions granted to cluster admins
when performing cleanup. If the approach in #291
is approved, this will become necessary. Additionally, it makes sense to remove roles as the final
step to allow human Operators to modify any resources they may have permissions on as a result of the Knative installation (that is, we should not remove any access until we are 'almost done' cleaning up).

/lint

Proposed Changes

  • Delete roles and rolebindings as a final cleanup step.

Release Note

Delete roles and rolebindings as a final cleanup step.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@googlebot googlebot added the cla: yes Author(s) signed a CLA. label Mar 12, 2020
@Cynocracy
Copy link
Contributor Author

/assign @k4leung4

@k4leung4
Copy link
Contributor

maybe add a unit test?

Copy link
Contributor

@jcrossley3 jcrossley3 left a comment

Choose a reason for hiding this comment

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

Without fully grok'ing #291 I'm unable to say what problem this is solving.

@jcrossley3
Copy link
Contributor

/lgtm

if err := r.config.Filter(mf.NoCRDs, mf.None(RBAC)).Delete(); err != nil {
return err
}
// Delete Roles last, as they may be useful for human operators to clean up.
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add a unit test to verify this behavior

@Cynocracy
Copy link
Contributor Author

@k4leung4 re: unit test, I'm not sure I'd like to expand the scope of this PR to include one.

Perhaps I can work on one in a separate issue/change?

@k4leung4
Copy link
Contributor

@Cynocracy works for me.
just want to make sure we verify behavior changes as we dont really know when it stops working.

/approve
/lgtm

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cynocracy, k4leung4

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

The pull request process is described here

Details 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

@Cynocracy
Copy link
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants