From 5ada4b206e6c3d31ab3ebc95a0ddb844b09cc782 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Mon, 28 Aug 2023 17:25:59 +0900 Subject: [PATCH] Enable to set priorityClassName in StatefulSets. (#12) Signed-off-by: Masaki Muranaka --- Chart.yaml | 2 +- README.md | 2 ++ templates/statefulset.yaml | 2 ++ values.yaml | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index 0d6ec97..b756778 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgresql -version: 0.2.3 +version: 0.2.4 appVersion: 11.5.0 description: PostgreSQL is an open-source object-relational database management system (ORDBMS) emphasizing extensibility and technical standards compliance. keywords: diff --git a/README.md b/README.md index 8f7fa78..dec74ae 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,8 @@ The following table lists the configurable parameters of the postgresql chart an | **tolerations** | | `tolerations` | Tolerations for pod assignment | `[]` | +| **priorityClass** | +| `priorityClassName` | PriorityClassName for pod assignment | `nil` | ## Why this PostgreSQL Helm Chart? * use postgres official Docker Image. diff --git a/templates/statefulset.yaml b/templates/statefulset.yaml index f83457a..93724eb 100644 --- a/templates/statefulset.yaml +++ b/templates/statefulset.yaml @@ -24,6 +24,8 @@ spec: release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} spec: + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} {{- end }} {{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }} initContainers: - name: init-chmod-data diff --git a/values.yaml b/values.yaml index aed9fd2..a153b5b 100644 --- a/values.yaml +++ b/values.yaml @@ -212,3 +212,5 @@ resources: {} nodeSelector: {} tolerations: [] + +#priorityClassName: "high-priority"