From e66d8036bbaaed58b4400f1c0a4b6ecc05c3cbd6 Mon Sep 17 00:00:00 2001 From: Diego OJ Date: Mon, 22 Jul 2024 19:26:55 -0300 Subject: [PATCH] Add Kubernetes Priority Classes support --- couchdb/Chart.yaml | 2 +- couchdb/templates/statefulset.yaml | 3 +++ couchdb/values.yaml | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/couchdb/Chart.yaml b/couchdb/Chart.yaml index fbe0bfe..e369a78 100644 --- a/couchdb/Chart.yaml +++ b/couchdb/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: couchdb -version: 4.5.6 +version: 4.6.0 appVersion: 3.3.3 description: A database featuring seamless multi-master sync, that scales from big data to mobile, with an intuitive HTTP/JSON API and designed for diff --git a/couchdb/templates/statefulset.yaml b/couchdb/templates/statefulset.yaml index 5686f1c..fb9d7b2 100644 --- a/couchdb/templates/statefulset.yaml +++ b/couchdb/templates/statefulset.yaml @@ -210,6 +210,9 @@ spec: {{- with .Values.topologySpreadConstraints }} topologySpreadConstraints: {{ toYaml . | indent 8 }} +{{- end }} +{{- with .Values.priorityClassName }} + priorityClassName: {{ . | quote }} {{- end }} volumes: - name: config-storage diff --git a/couchdb/values.yaml b/couchdb/values.yaml index 586dc54..14da9e6 100644 --- a/couchdb/values.yaml +++ b/couchdb/values.yaml @@ -294,3 +294,6 @@ placementConfig: image: repository: caligrafix/couchdb-autoscaler-placement-manager tag: 0.1.0 + +# Optional priority class to be used for CouchDB pods +priorityClassName: "" \ No newline at end of file