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
Remove specific UID from cluster-storage-operator #316
Remove specific UID from cluster-storage-operator #316
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane 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 |
385b8c4
to
8ce29fb
Compare
cc @openshift/storage |
/label docs-approved |
runAsNonRoot: true | ||
runAsUser: 10400 | ||
seccompProfile: |
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.
CSO seems to be running in nonroot-v2
SCC , which has following policies:
fsGroup:
type: RunAsAny
Have you tested if this still results in assigning a fsgroup to the pod?
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.
Yes, CI shows that CSO runs with some fsGroup:
"name": "cluster-storage-operator-6db7799b89-rxmhq",
"namespace": "openshift-cluster-storage-operator",
...
"securityContext": {
"fsGroup": 1000150000,
"runAsNonRoot": true,
"seLinuxOptions": {
"level": "s0:c12,c9"
},
"seccompProfile": {
"type": "RuntimeDefault"
}
},
"serviceAccount": "cluster-storage-operator",
"serviceAccountName": "cluster-storage-operator",
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.
BTW, SCC changed to:
"openshift.io/scc": "restricted-v2",
/lgtm |
/retest-required |
/label qe-approved |
/retest |
/hold Revision 8ce29fb was retested 3 times: holding |
/hold cancel |
@jsafrane: 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/test-infra repository. I understand the commands that are listed here. |
OCP will assign its own UID to the Pod. This helps in HyperShift, where UIDs of different guest control planes should be different.