-
Notifications
You must be signed in to change notification settings - Fork 216
Verify pod securityContext/uid behavior on OKD #3537
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
Conversation
Kudos, SonarCloud Quality Gate passed!
|
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.
LGTM, will this be also used in open shift certification?
@jshum2479 Yes. Once this PR is merged I will backport it to release/3.4. Also we are going to work on OKD support on main branch. As an initial step I added OKD profiles into main branch using this PR. |
* Verify pod securityContext/uid behavior on OKD Co-authored-by: Antaryami Panigrahi <antaryami.panigrahi@oracle.com>
* Verify pod securityContext/uid behavior on OKD Co-authored-by: Antaryami Panigrahi <antaryami.panigrahi@oracle.com>
Test scenario:
*
Test passed at OKD: https://build.weblogick8s.org:8443/job/wko34-okd/24/
From https://build.weblogick8s.org:8443/job/wko34-okd/24/console, using "got uid" we can see in the domain namespace, all the pods have the same UID, GID and SELinux label at initial domain startup and after managed server 2 was restarted.
<Initial domain startup, got uid recovery-dpv-admin-server runAsUser: 1000780000 fsGroup: 1000780000 seLinuxOptions: s0:c28,c12 for pod recovery-dpv-admin-server in the namespace ns-xcpbmn>
<Initial domain startup, got uid recovery-dpv-managed-1 runAsUser: 1000780000 fsGroup: 1000780000 seLinuxOptions: s0:c28,c12 for pod recovery-dpv-managed-1 in the namespace ns-xcpbmn>
<Initial domain startup, got uid recovery-dpv-managed-2 runAsUser: 1000780000 fsGroup: 1000780000 seLinuxOptions: s0:c28,c12 for pod recovery-dpv-managed-2 in the namespace ns-xcpbmn>
<After managed Server2 was restarted, got uid recovery-dpv-admin-server runAsUser: 1000780000 fsGroup: 1000780000 seLinuxOptions: s0:c28,c12 for pod recovery-dpv-admin-server in the namespace ns-xcpbmn>
<After managed Server2 was restarted, got uid recovery-dpv-managed-1 runAsUser: 1000780000 fsGroup: 1000780000 seLinuxOptions: s0:c28,c12 for pod recovery-dpv-managed-1 in the namespace ns-xcpbmn>
<After managed Server2 was restarted, got uid recovery-dpv-managed-2 runAsUser: 1000780000 fsGroup: 1000780000 seLinuxOptions: s0:c28,c12 for pod recovery-dpv-managed-2 in the namespace ns-xcpbmn>