Skip to content

Commit

Permalink
Merge pull request #121 from KevinJoiner/charts-priority-class
Browse files Browse the repository at this point in the history
Adds priorityClassName to the webhook deployment.
  • Loading branch information
KevinJoiner authored Sep 16, 2022
2 parents d34f52e + 0f6157b commit 4fd1b22
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions charts/rancher-webhook/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ spec:
- name: tls
mountPath: /tmp/k8s-webhook-server/serving-certs
serviceAccountName: rancher-webhook
{{- if .Values.priorityClassName }}
priorityClassName: "{{.Values.priorityClassName}}"
{{- end }}
3 changes: 3 additions & 0 deletions charts/rancher-webhook/templates/pre-delete-hook-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
labels: {{ include "rancher-webhook.labels" . | nindent 8 }}
spec:
serviceAccountName: rancher-webhook-pre-delete
{{- if .Values.priorityClassName }}
priorityClassName: "{{.Values.priorityClassName}}"
{{- end }}
restartPolicy: OnFailure
nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
{{- if .Values.nodeSelector }}
Expand Down
5 changes: 4 additions & 1 deletion charts/rancher-webhook/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ preDelete:

# tolerations for the webhook deployment. See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ for more info
tolerations: []
nodeSelector: {}
nodeSelector: {}

## PriorityClassName assigned to deployment.
priorityClassName: ""

0 comments on commit 4fd1b22

Please sign in to comment.