From be4c12a6b3f176525b6636b0ae1d2c177800ceb0 Mon Sep 17 00:00:00 2001 From: William H Date: Tue, 8 Aug 2023 10:47:13 -0400 Subject: [PATCH] feat(CN-2228): Add support for PriorityClass field: cnp-controller (#444) Co-authored-by: will.hearn --- stable/cnp-controller/Chart.yaml | 2 +- .../templates/deployment-image-pull-secrets.yaml | 3 +++ stable/cnp-controller/values.yaml | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stable/cnp-controller/Chart.yaml b/stable/cnp-controller/Chart.yaml index a8e58165..794bf027 100644 --- a/stable/cnp-controller/Chart.yaml +++ b/stable/cnp-controller/Chart.yaml @@ -15,7 +15,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.0.1 +version: 0.0.2 # 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 diff --git a/stable/cnp-controller/templates/deployment-image-pull-secrets.yaml b/stable/cnp-controller/templates/deployment-image-pull-secrets.yaml index e237d914..1b0fe3e5 100644 --- a/stable/cnp-controller/templates/deployment-image-pull-secrets.yaml +++ b/stable/cnp-controller/templates/deployment-image-pull-secrets.yaml @@ -28,6 +28,9 @@ spec: serviceAccountName: {{ include "cnp-controller.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} + {{- end }} containers: - name: {{ .Chart.Name }} securityContext: diff --git a/stable/cnp-controller/values.yaml b/stable/cnp-controller/values.yaml index 60dfa214..5677bfa8 100644 --- a/stable/cnp-controller/values.yaml +++ b/stable/cnp-controller/values.yaml @@ -20,6 +20,9 @@ podLabels: {} podSecurityContext: {} # fsGroup: 2000 +## PriorityClassName indicates the Pod priority and hence importance of a Pod relative to other Pods. +priorityClassName: "" + securityContext: {} # capabilities: # drop: