From ba0dbf12f28ab57467dcbb3cd1a4746f2ac0dc0e Mon Sep 17 00:00:00 2001 From: Mayer Maximilian Date: Wed, 10 May 2023 15:38:22 +0200 Subject: [PATCH] charts/timescaledb-single: Allow to set priority class --- charts/timescaledb-single/Chart.yaml | 2 +- .../timescaledb-single/templates/statefulset-timescaledb.yaml | 3 +++ charts/timescaledb-single/values.schema.json | 4 ++++ charts/timescaledb-single/values.schema.yaml | 3 +++ charts/timescaledb-single/values.yaml | 2 ++ 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/charts/timescaledb-single/Chart.yaml b/charts/timescaledb-single/Chart.yaml index 84e86776..99b62424 100644 --- a/charts/timescaledb-single/Chart.yaml +++ b/charts/timescaledb-single/Chart.yaml @@ -4,7 +4,7 @@ apiVersion: v1 name: timescaledb-single description: 'TimescaleDB HA Deployment.' -version: 0.33.2 +version: 0.34.2 icon: https://cdn.iconscout.com/icon/free/png-256/timescaledb-1958407-1651618.png # appVersion specifies the version of the software, which can vary wildly, diff --git a/charts/timescaledb-single/templates/statefulset-timescaledb.yaml b/charts/timescaledb-single/templates/statefulset-timescaledb.yaml index 7e63437d..559d428a 100644 --- a/charts/timescaledb-single/templates/statefulset-timescaledb.yaml +++ b/charts/timescaledb-single/templates/statefulset-timescaledb.yaml @@ -472,6 +472,9 @@ spec: affinity: {{- .Values.affinity | toYaml | nindent 8 }} {{- end }} + {{- if .Values.priorityClass }} + priorityClassName: {{ .Values.priorityClass }} + {{- end }} volumes: - name: socket-directory emptyDir: {} diff --git a/charts/timescaledb-single/values.schema.json b/charts/timescaledb-single/values.schema.json index a65ec74b..fc75152b 100644 --- a/charts/timescaledb-single/values.schema.json +++ b/charts/timescaledb-single/values.schema.json @@ -590,6 +590,10 @@ "null" ] }, + "priorityClass": { + "maxLength": 63, + "type": "string" + }, "prometheus": { "additionalProperties": false, "properties": { diff --git a/charts/timescaledb-single/values.schema.yaml b/charts/timescaledb-single/values.schema.yaml index dca9835f..8a38cfd7 100644 --- a/charts/timescaledb-single/values.schema.yaml +++ b/charts/timescaledb-single/values.schema.yaml @@ -424,6 +424,9 @@ properties: type: array topologySpreadConstraints: type: array + priorityClass: + type: string + maxLength: 63 debug: type: object additionalProperties: false diff --git a/charts/timescaledb-single/values.yaml b/charts/timescaledb-single/values.yaml index 00296895..f38da75e 100644 --- a/charts/timescaledb-single/values.yaml +++ b/charts/timescaledb-single/values.yaml @@ -574,6 +574,8 @@ affinity: {} # https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#topologyspreadconstraints topologySpreadConstraints: [] +priorityClass: "" + ## Use an alternate scheduler, e.g. "stork". ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ ##