-
Notifications
You must be signed in to change notification settings - Fork 44
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
feat: custom security context for kafka addon #1337
feat: custom security context for kafka addon #1337
Conversation
securityContext: | ||
runAsNonRoot: true |
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.
The modification logic here differs from the previous implementation.
the default value of allowPrivilegeEscalation is true in k8s?
// defaultAllowPrivilegeEscalation controls the default setting for whether a
// process can gain more privileges than its parent process.
// +optional
DefaultAllowPrivilegeEscalation *bool `json:"defaultAllowPrivilegeEscalation,omitempty" protobuf:"varint,15,opt,name=defaultAllowPrivilegeEscalation"`
// allowPrivilegeEscalation determines if a pod can request to allow
// privilege escalation. If unspecified, defaults to true.
// +optional
AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty" protobuf:"varint,16,opt,name=allowPrivilegeEscalation"`
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, so in the previous implementation, the jmx-exporter will be able to sudo
. Now it can't.
If jmx-exporter needs AllowPrivilegeEscalation
, i can define another value for it.
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.
using separate value for exporter's securityContext
@caiq1nyu please take a look. |
/cherry-pick release-1.0-beta |
Co-authored-by: lancelot1989 <[email protected]> (cherry picked from commit ec44453)
🤖 says: cherry pick action finished successfully 🎉! |
resolves #1336