-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Keep securitycontext fields simple in e2e #6547
Conversation
/kind misc |
/test check-pr-has-kind-label |
@piyush-garg: The specified target(s) for
The following commands are available to trigger optional jobs:
Use In response to this:
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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester 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 |
Related: #3452 and #6515 @piyush-garg I'm looking at https://docs.openshift.com/container-platform/3.11/admin_guide/manage_scc.html to figure out which securitycontext fields are and aren't accepted and it's a bit unclear; it seems like Also, a release note that might be a bit clearer could be "allow e2e tests to run on openshift" |
we have faced issues with |
So for pipelinerun controller, we are "patching" those with the operator (aka we are removing them, letting the random uid take over). I do not remember that we set some on init containers though, do we ?
Yes, and by default the "userid" set in a pod is randomly taken from a range that is assigned to a namespace. This makes any "explicit" |
@vdemeester we don't currently set security context for init containers but I was trying to add it in #6515 |
/retest |
ah right 🙃 |
/retest |
This will make securitycontext fields to be simple and easy in e2e so that tests can be run on different platform like openshift where runasUser 65532 and 2000 etc can fail, here we are just checking the conversion of fields so simple configuration will also do the job
@lbernick Can you please take a look and merge this PR |
/lgtm @piyush-garg can you please address the feedback on the release notes? |
done, updated the release notes. Thanks for merging. |
This will make securitycontext fields to be simple and easy in e2e so that tests can be run on different platform like openshift where runasUser 65532 and 2000 etc can fail, here we are just checking the conversion of fields so simple configuration will also do the job
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes