-
Notifications
You must be signed in to change notification settings - Fork 830
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
run chaos-daemon in privileged by default #1453
Conversation
Signed-off-by: cwen0 <cwenyin0@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #1453 +/- ##
==========================================
- Coverage 55.78% 52.00% -3.78%
==========================================
Files 68 80 +12
Lines 4383 5107 +724
==========================================
+ Hits 2445 2656 +211
- Misses 1768 2183 +415
- Partials 170 268 +98
Continue to review full report at Codecov.
|
| @@ -64,6 +64,9 @@ spec: | |||
| value: {{ .Values.timezone | default "UTC" }} | |||
| {{- end }} | |||
| securityContext: | |||
| {{- if .Values.chaosDaemon.privileged }} | |||
| privileged: 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.
Please remove 2 spaces here.
I think privileged: true should keep the same indent level with capabilities.
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.
Fixed
Signed-off-by: cwen0 <cwenyin0@gmail.com>
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
| @@ -64,6 +64,9 @@ spec: | |||
| value: {{ .Values.timezone | default "UTC" }} | |||
| {{- end }} | |||
| securityContext: | |||
| {{- if .Values.chaosDaemon.privileged }} | |||
| privileged: true | |||
| {{- else }} | |||
| capabilities: | |||
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.
do we need to remove these capabilities when privileged is 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.
SYS_PTRACE must be kept and others can be removed.
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.
Other capabilities are unnecessary when privileged is true, except SYS_PTRACE. I think we can delete them to make the code cleaner
Signed-off-by: cwen0 <cwenyin0@gmail.com>
Signed-off-by: cwen0 <cwenyin0@gmail.com>
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
|
/merge |
|
Your auto merge job has been accepted, waiting for:
|
|
/run-all-tests |
Signed-off-by: cwen0 cwenyin0@gmail.com
What problem does this PR solve?
What is changed and how does it work?
Add a field to control
privilegedmode and run chaos-daemon in privileged by default.Checklist
Tests
Side effects
Related changes
Does this PR introduce a user-facing change?