-
Notifications
You must be signed in to change notification settings - Fork 1k
configurable failurePolicy for validating webhooks #1623
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
Conversation
test: default value
|
test:
|
test:
|
test: invalid value
|
|
@attiss can you run inv helm-docs to regenerate the docs? |
| namespace: {{ .Release.Namespace }} | ||
| path: /validate-metallb-io-v1beta1-addresspool | ||
| failurePolicy: Fail | ||
| failurePolicy: {{ default "Fail" .Values.crds.validationFailurePolicy }} |
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 think there's no need to specify the default here, as long as we add it in values.yaml
same for the following.
cc @gclawes
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.
fair point, it's unnecessary duplication of the default value, updated
|
Since you have to change the pr, can you adjust the commit subject and message following our reference https://chris.beams.io/posts/git-commit/ ? |
Sure, updated! Thank you! |
This commit adds a new configuration option to the helm chart: `crds.validationFailurePolicy`. The value is injected into the validating webhook's `failurePolicy` field. Defaults to `Fail`.
|
LGTM, thanks! |
This PR adds a new configuration option to the helm chart:
crds.validationFailurePolicy. The value is injected into the validating webhook'sfailurePolicyfield. Defaults toFail(current behavior).Closes #1598