diff --git a/deployments/sdm-proxy/Chart.yaml b/deployments/sdm-proxy/Chart.yaml index 1dc3875..64fd562 100644 --- a/deployments/sdm-proxy/Chart.yaml +++ b/deployments/sdm-proxy/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: sdm-proxy kubeVersion: ">= 1.16.0-0" -version: 2.7.7 +version: 2.8.0 description: StrongDM Proxy type: application icon: https://raw.githubusercontent.com/strongdm/charts/main/sdm_icon.png diff --git a/deployments/sdm-proxy/templates/deployment.yaml b/deployments/sdm-proxy/templates/deployment.yaml index 3db2c53..8e4e006 100644 --- a/deployments/sdm-proxy/templates/deployment.yaml +++ b/deployments/sdm-proxy/templates/deployment.yaml @@ -30,6 +30,9 @@ spec: serviceAccountName: {{ include "strongdm.serviceAccountName" . }} {{- end }} terminationGracePeriodSeconds: 10 + {{- with .Values.strongdm.deployment.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} nodeSelector: {{- with .Values.strongdm.deployment.nodeSelector }} {{- toYaml . | nindent 8 }} diff --git a/deployments/sdm-proxy/values.schema.json b/deployments/sdm-proxy/values.schema.json index e83dd55..504cf3b 100644 --- a/deployments/sdm-proxy/values.schema.json +++ b/deployments/sdm-proxy/values.schema.json @@ -158,6 +158,10 @@ } } } + }, + "priorityClassName": { + "description": "PriorityClass name for the Pod. Empty (the default) leaves it unset, so the Pod schedules at the cluster's global-default priority.", + "type": "string" } } }, diff --git a/deployments/sdm-proxy/values.test.yaml b/deployments/sdm-proxy/values.test.yaml index a261510..65d95ff 100644 --- a/deployments/sdm-proxy/values.test.yaml +++ b/deployments/sdm-proxy/values.test.yaml @@ -25,3 +25,5 @@ strongdm: baz: false rbac: create: true + deployment: + priorityClassName: system-cluster-critical diff --git a/deployments/sdm-proxy/values.yaml b/deployments/sdm-proxy/values.yaml index f62c636..f403f1c 100644 --- a/deployments/sdm-proxy/values.yaml +++ b/deployments/sdm-proxy/values.yaml @@ -61,6 +61,7 @@ strongdm: replicaCount: 2 # @schema description: Number of Pods to run in the deployment. nodeSelector: {} # @schema description: Pod node selectors. tolerations: [] # @schema description: Pod node tolerations. + priorityClassName: "" # @schema description: PriorityClass name for the Pod. Empty (the default) leaves it unset, so the Pod schedules at the cluster's global-default priority. topologySpreadConstraints: # @schema description: Pod spread constraints. Keys in this map are topology keys. See https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/ for more info. kubernetes.io/hostname: maxSkew: 1 diff --git a/deployments/sdm-relay/Chart.yaml b/deployments/sdm-relay/Chart.yaml index 829668f..fa5c8d7 100644 --- a/deployments/sdm-relay/Chart.yaml +++ b/deployments/sdm-relay/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: sdm-relay kubeVersion: ">= 1.16.0-0" -version: 2.6.5 +version: 2.7.0 description: StrongDM Relay type: application icon: https://raw.githubusercontent.com/strongdm/charts/main/sdm_icon.png diff --git a/deployments/sdm-relay/templates/deployment.yaml b/deployments/sdm-relay/templates/deployment.yaml index 846380a..bb0ef7e 100644 --- a/deployments/sdm-relay/templates/deployment.yaml +++ b/deployments/sdm-relay/templates/deployment.yaml @@ -28,6 +28,9 @@ spec: serviceAccountName: {{ include "strongdm.serviceAccountName" . }} {{- end }} terminationGracePeriodSeconds: 10 + {{- with .Values.strongdm.deployment.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} nodeSelector: {{- with .Values.strongdm.deployment.nodeSelector }} {{- toYaml . | nindent 8 }} diff --git a/deployments/sdm-relay/values.schema.json b/deployments/sdm-relay/values.schema.json index 96ed1b0..e071b1f 100644 --- a/deployments/sdm-relay/values.schema.json +++ b/deployments/sdm-relay/values.schema.json @@ -159,6 +159,10 @@ "tolerations": { "description": "Pod node tolerations.", "type": "array" + }, + "priorityClassName": { + "description": "PriorityClass name for the Pod. Empty (the default) leaves it unset, so the Pod schedules at the cluster's global-default priority.", + "type": "string" } } }, diff --git a/deployments/sdm-relay/values.test.yaml b/deployments/sdm-relay/values.test.yaml index e7eff06..d5d3d9d 100644 --- a/deployments/sdm-relay/values.test.yaml +++ b/deployments/sdm-relay/values.test.yaml @@ -23,3 +23,5 @@ strongdm: baz: false rbac: create: true + deployment: + priorityClassName: system-cluster-critical diff --git a/deployments/sdm-relay/values.yaml b/deployments/sdm-relay/values.yaml index 11ef2bb..fed726b 100644 --- a/deployments/sdm-relay/values.yaml +++ b/deployments/sdm-relay/values.yaml @@ -65,6 +65,7 @@ strongdm: labels: {} # @schema description: Map of labels to add to the Deployment. nodeSelector: {} # @schema description: Pod node selectors. tolerations: [] # @schema description: Pod node tolerations. + priorityClassName: "" # @schema description: PriorityClass name for the Pod. Empty (the default) leaves it unset, so the Pod schedules at the cluster's global-default priority. pod: # @schema description: Pod configuration. annotations: {} # @schema description: Map of annotations to add to Pods.