-
Notifications
You must be signed in to change notification settings - Fork 132
feat(pod-security): add pod security labels to tenant ns #3184
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
base: master
Are you sure you want to change the base?
Conversation
…privileged levels in tenant namespaces
|
Hi @aleoli. Thanks for your PR! I am @adamjensenbot.
Make sure this PR appears in the liqo changelog, adding one of the following labels:
|
|
/test |
| // podSecurityLabelPrefix is the prefix for pod security admission labels. | ||
| podSecurityLabelPrefix = "pod-security.kubernetes.io/" | ||
| // PodSecurityAuditLevelLabel is the label key for pod security audit level. | ||
| PodSecurityAuditLevelLabel = podSecurityLabelPrefix + "audit" | ||
| // PodSecurityEnforceLevelLabel is the label key for pod security enforce level. | ||
| PodSecurityEnforceLevelLabel = podSecurityLabelPrefix + "enforce" | ||
| // PodSecurityWarnLevelLabel is the label key for pod security warn level. | ||
| PodSecurityWarnLevelLabel = podSecurityLabelPrefix + "warn" | ||
|
|
||
| // PodSecurityLevelPrivileged is the privileged pod security level. | ||
| PodSecurityLevelPrivileged = "privileged" | ||
| // PodSecurityLevelBaseline is the baseline pod security level. | ||
| PodSecurityLevelBaseline = "baseline" | ||
| // PodSecurityLevelRestricted is the restricted pod security level. | ||
| PodSecurityLevelRestricted = "restricted" |
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.
nitpick: do official labels from k8s libs exist?
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.
I didn't find them, but I didn't do very deep research
Description
This pr add pod security labels to tenant namespaces to allow privileged pods in security-constrained K8S clusters.