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

Add enhancement for supporting user namespaces #1649

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

haircommander
Copy link
Member

@haircommander
Copy link
Member Author

/hold

@deads2k is on vacation and should review this. I'm opening it for preliminary review though

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 25, 2024
@openshift-ci openshift-ci bot requested review from jmguzik and joepvd June 25, 2024 19:35
@haircommander haircommander force-pushed the scc-userns branch 2 times, most recently from 31705ee to 55032bf Compare June 25, 2024 20:11
@haircommander
Copy link
Member Author

SCC piece openshift/api#1939

@haircommander
Copy link
Member Author

TPNU piece openshift/api#1940

@haircommander
Copy link
Member Author

/hold cancel

I chatted with @deads2k on slack, he's okay with the piece I was waiting for his council on

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 8, 2024
// +openshift:enable:FeatureGate=UserNamespacesSupport
// +kubebuilder:validation:Enum="Allowed";"Disallowed";""
// +kubebuilder:validation:Optional
HostUsers HostUsersStrategyType `json:"hostUsers" protobuf:"varint,26,opt,name=allowHostUsers"`
Copy link
Contributor

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.

Copy link
Member Author

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

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

@rphillips
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 15, 2024
Copy link
Contributor

openshift-ci bot commented Jul 15, 2024

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 15, 2024
@haircommander
Copy link
Member Author

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 15, 2024
@haircommander
Copy link
Member Author

for API and auth team reviews

Copy link
Contributor

openshift-ci bot commented Jul 18, 2024

New changes are detected. LGTM label has been removed.

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 18, 2024
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>
Copy link
Contributor

openshift-ci bot commented Jul 23, 2024

@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.

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. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants