Skip to content

Commit 204850f

Browse files
authored
feat: allow configuring priorityClassName in helm chart (#63)
Especially if running in `DaemonSet` mode, the webhook should receive a high priority class, e.g. `system-node-critical` to ensure that it can always be scheduled. This makes this configurable. By default, no priority class is assigned.
1 parent 39042ef commit 204850f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

charts/pod-image-swap-webhook/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: pod-image-swap-webhook
33
description: A webhook that replaces Pod images based on configuration values.
44
type: application
5-
version: 0.1.0
5+
version: 0.1.1
66
appVersion: "v0.0.3"

charts/pod-image-swap-webhook/templates/_helpers.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ spec:
130130
- secret:
131131
secretName: {{ include "pod-image-swap-webhook.fullname" . }}
132132
name: certs
133+
{{- with .Values.priorityClassName }}
134+
priorityClassName: {{ . }}
135+
{{- end }}
133136
{{- with .Values.nodeSelector }}
134137
nodeSelector:
135138
{{- toYaml . | nindent 4 }}

charts/pod-image-swap-webhook/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ podDisruptionBudget:
5959
create: true
6060
minAvailable: 1
6161

62+
priorityClassName: ""
63+
6264
nodeSelector: {}
6365

6466
tolerations: []

0 commit comments

Comments
 (0)