Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 5ada4b2

Browse files
authored
Enable to set priorityClassName in StatefulSets. (#12)
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
1 parent 187516e commit 5ada4b2

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: postgresql
3-
version: 0.2.3
3+
version: 0.2.4
44
appVersion: 11.5.0
55
description: PostgreSQL is an open-source object-relational database management system (ORDBMS) emphasizing extensibility and technical standards compliance.
66
keywords:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ The following table lists the configurable parameters of the postgresql chart an
120120
| **tolerations** |
121121
| `tolerations` | Tolerations for pod assignment | `[]` |
122122

123+
| **priorityClass** |
124+
| `priorityClassName` | PriorityClassName for pod assignment | `nil` |
123125
## Why this PostgreSQL Helm Chart?
124126

125127
* use postgres official Docker Image.

templates/statefulset.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ spec:
2424
release: {{ .Release.Name | quote }}
2525
heritage: {{ .Release.Service | quote }}
2626
spec:
27+
{{- if .Values.priorityClassName }}
28+
priorityClassName: {{ .Values.priorityClassName }} {{- end }}
2729
{{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }}
2830
initContainers:
2931
- name: init-chmod-data

values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,5 @@ resources: {}
212212
nodeSelector: {}
213213

214214
tolerations: []
215+
216+
#priorityClassName: "high-priority"

0 commit comments

Comments
 (0)