Skip to content
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

[Feature] add runAsNonRoot filed #195

Merged
merged 5 commits into from
Jul 27, 2023

Conversation

yandongxiao
Copy link
Collaborator

No description provided.

@yandongxiao yandongxiao force-pushed the feature/run-as-user branch 2 times, most recently from 7df17ae to 624a001 Compare July 26, 2023 09:07
@yandongxiao yandongxiao changed the title [Feature] add runAsUser filed [Feature] add runAsNonRoot filed Jul 26, 2023
@@ -84,6 +85,11 @@ type StarRocksComponentSpec struct {
// serviceAccount for access cloud service.
ServiceAccount string `json:"serviceAccount,omitempty"`

// RunAsGroup is used to determine whether to run starrocks as a normal user.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix the comment, it is RunAsNonRoot, not RunAsGroup

@@ -191,6 +194,9 @@ starrocksCnSpec:
serviceAccount: ""
# add annotations for cn pods. example, if you want to config monitor for datadog, you can config the annotations.
annotations: {}
# If runAsNonRoot is true, the container is run as non-root user.
# The userId will be set to 1000, and the groupID will be set to 1000.
runAsNonRoot: false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this configuration overwrite fsGroup? or we won't use fsGroup any more?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, they both are used to control different part in security context

kevincai
kevincai previously approved these changes Jul 27, 2023
Co-authored-by: Kevin Cai <[email protected]>
Signed-off-by: yandongxiao <[email protected]>
@kevincai kevincai merged commit f220477 into StarRocks:main Jul 27, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants