Skip to content

Commit

Permalink
option to set a softer failurePolicy than fail (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitte-ein-bit authored Jan 25, 2023
1 parent 6c4022b commit 1b547a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/k8s-sizing-webhook/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.4.1
version: 0.5.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 2 additions & 0 deletions charts/k8s-sizing-webhook/templates/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ webhooks:
{{- include "k8s-sizing-webhook.matchExpressions" . | nindent 6 }}
admissionReviewVersions: ["v1"]
sideEffects: None
failurePolicy: {{ .Values.webhook.memory.failurePolicy }}
clientConfig:
service:
name: {{ include "k8s-sizing-webhook.fullname" . }}
Expand All @@ -33,6 +34,7 @@ webhooks:
{{- include "k8s-sizing-webhook.matchExpressions" . | nindent 6 }}
admissionReviewVersions: ["v1"]
sideEffects: None
failurePolicy: {{ .Values.webhook.mark.failurePolicy }}
clientConfig:
service:
name: {{ include "k8s-sizing-webhook.fullname" . }}
Expand Down
2 changes: 2 additions & 0 deletions charts/k8s-sizing-webhook/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ webhook:
mark:
name: allmark.bitteeinbit.dev
enable: true
failurePolicy: Fail
labels:
kubewebhook: k8s-webhook-example
memory:
name: memfix.bitteeinbit.dev
enable: true
failurePolicy: Fail


serviceMonitor:
Expand Down

0 comments on commit 1b547a2

Please sign in to comment.