Skip to content

Conversation

@lisa
Copy link
Contributor

@lisa lisa commented Feb 11, 2021

This will allow CustomDomain objects from managed.openshift.io to be
managed by members of the dedicated-admins group. This will also
slightly modify the logic of the MustGather section to refer to the
ApiGroup as well as the Kind (for future safety), and switch them to
being references to constants. Further, the check is done outside a loop
so it's a wee bit faster.

Signed-off-by: Lisa Seelye lisa@users.noreply.github.com

This will allow `CustomDomain` objects from `managed.openshift.io` to be
managed by members of the dedicated-admins group. This will also
slightly modify the logic of the `MustGather` section to refer to the
ApiGroup as well as the Kind (for future safety), and switch them to
being references to constants. Further, the check is done outside a loop
so it's a wee bit faster.

Signed-off-by: Lisa Seelye <lisa@users.noreply.github.com>
@lisa lisa requested a review from csheremeta February 11, 2021 20:53
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 11, 2021
@lisa
Copy link
Contributor Author

lisa commented Feb 11, 2021

/cc @dustman9000

ret.UID = request.AdmissionRequest.UID
return ret
}
if utils.SliceContains("dedicated-admins", request.UserInfo.Groups) &&

Choose a reason for hiding this comment

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

Does this need to also accounts for cluster-admins users?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If that's in the spec, yes. Let's chat Tuesday.

@dustman9000
Copy link
Member

/lgtm
thanks Lisa!

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 11, 2021
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dustman9000, lisa

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

@openshift-merge-robot openshift-merge-robot merged commit 3031ecc into openshift:master Feb 11, 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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants