-
Notifications
You must be signed in to change notification settings - Fork 128
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(KSPM admission controller): SSPROD-35354 - Make Dry Run mode configurable to a user in Chart Values. #1560
Conversation
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.
@dimar-apolicy can you also add the default value to be true?
i.e
value: {{ .Values.webhook.dryRun | default "true" | quote }}
@@ -54,8 +54,12 @@ spec: | |||
image: {{ include "admissionController.kspm.image" . }} | |||
imagePullPolicy: {{ .Values.webhook.v2.image.pullPolicy | default .Values.global.image.pullPolicy }} | |||
env: | |||
- name: DEFAULT_TIMEOUT | |||
- value: {{ .Values.webhook.timeoutSeconds}} | |||
- name: DENY_ON_ERROR |
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.
Should we configure the failurePolicy
accordingly?
EG: heres what happens with the webhook right now https://github.com/sysdiglabs/charts/blob/master/charts/admission-controller/templates/_helpers.tpl#L453
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.
@AlbertoBarba there is no change in existing logic, just using the value in another container.
# Conflicts: # charts/sysdig-deploy/Chart.yaml
What this PR does / why we need it:
Proposed changes will allow configuring the
dry-run
and thedenyOnError
settings of KSPM admission controller.JIRA ticket: Make Dry Run mode configurable to a user in Chart Values
Checklist
Check Contribution guidelines in README.md for more insight.