-
Notifications
You must be signed in to change notification settings - Fork 454
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 enhancement for supporting user namespaces #1649
base: master
Are you sure you want to change the base?
Conversation
/hold @deads2k is on vacation and should review this. I'm opening it for preliminary review though |
31705ee
to
55032bf
Compare
SCC piece openshift/api#1939 |
TPNU piece openshift/api#1940 |
95cdfa8
to
3605bb1
Compare
// +openshift:enable:FeatureGate=UserNamespacesSupport | ||
// +kubebuilder:validation:Enum="Allowed";"Disallowed";"" | ||
// +kubebuilder:validation:Optional | ||
HostUsers HostUsersStrategyType `json:"hostUsers" protobuf:"varint,26,opt,name=allowHostUsers"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be AllowHostUsers
? varint does not seem correct either. As does the "hostUsers" and "allowHostUsers" mismatch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good points, I must have done some weird copying
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version there was suggested by me. We are discouraging the use of new booleans in APIs and, within OpenShift, even forbidding it. It's preferable to use enums since they can be expanded over time, where currently, these bool values will never be able to be expanded. The version here would adhere to current API guidelines, even though it creates a new pattern
3605bb1
to
edb1513
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rphillips 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 |
/hold |
for API and auth team reviews |
New changes are detected. LGTM label has been removed. |
Signed-off-by: Peter Hunt <pehunt@redhat.com>
Signed-off-by: Peter Hunt <pehunt@redhat.com>
…pod SCC Signed-off-by: Peter Hunt <pehunt@redhat.com>
2dcdba1
to
4176f0e
Compare
@haircommander: all tests passed! Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
related https://issues.redhat.com/browse/OCPNODE-2337
cc @rphillips @mrunalp