From eb623cbc888446901af5f7d84cc0343fbd0971e1 Mon Sep 17 00:00:00 2001 From: Chadi El Masri <1502811+ChadiEM@users.noreply.github.com> Date: Mon, 1 Nov 2021 10:07:14 +0000 Subject: [PATCH] Feature: Add support for priorityClassName (#194) * Feature: Add support for priorityClassName --- charts/pihole/Chart.yaml | 2 +- charts/pihole/templates/deployment.yaml | 3 +++ charts/pihole/values.yaml | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/pihole/Chart.yaml b/charts/pihole/Chart.yaml index 6ea6c5b5..8b8c3f40 100644 --- a/charts/pihole/Chart.yaml +++ b/charts/pihole/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 description: Installs pihole in kubernetes home: https://github.com/MoJo2600/pihole-kubernetes/tree/master/charts/pihole name: pihole -version: 2.5.1 +version: 2.5.2 sources: - https://github.com/MoJo2600/pihole-kubernetes/tree/master/charts/pihole - https://pi-hole.net/ diff --git a/charts/pihole/templates/deployment.yaml b/charts/pihole/templates/deployment.yaml index e8126420..f46387b0 100644 --- a/charts/pihole/templates/deployment.yaml +++ b/charts/pihole/templates/deployment.yaml @@ -259,6 +259,9 @@ spec: tolerations: {{ toYaml . | indent 8 }} {{- end }} + {{- if .Values.priorityClassName }} + priorityClassName: "{{ .Values.priorityClassName }}" + {{- end }} {{- with .Values.topologySpreadConstraints }} topologySpreadConstraints: {{ toYaml . | indent 8 }} diff --git a/charts/pihole/values.yaml b/charts/pihole/values.yaml index f8114498..056e5a5a 100644 --- a/charts/pihole/values.yaml +++ b/charts/pihole/values.yaml @@ -202,6 +202,9 @@ nodeSelector: {} tolerations: [] +# -- Specify a priorityClassName +# priorityClassName: "" + # Reference: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ topologySpreadConstraints: [] # - maxSkew: