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

Commit

Permalink
Enable to set priorityClassName in StatefulSets. (#12)
Browse files Browse the repository at this point in the history
Signed-off-by: Masaki Muranaka <[email protected]>
  • Loading branch information
monaka authored Aug 28, 2023
1 parent 187516e commit 5ada4b2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,5 @@ resources: {}
nodeSelector: {}

tolerations: []

#priorityClassName: "high-priority"

0 comments on commit 5ada4b2

Please sign in to comment.