Skip to content

Commit 9a33e0c

Browse files
authored
[postgres] added support for priorityClassName (CloudPirates-io#662) (CloudPirates-io#663)
* [postgres] added support for priorityClassName (CloudPirates-io#662) * documented value * bump chart version * fixed indentation
1 parent bdf9baf commit 9a33e0c

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

charts/postgres/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: postgres
33
description: The World's Most Advanced Open Source Relational Database
44
type: application
5-
version: 0.12.1
5+
version: 0.12.2
66
appVersion: "18.1.0"
77
keywords:
88
- postgres

charts/postgres/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ The following table lists the configurable parameters of the PostgreSQL chart an
9292
| `fullnameOverride` | String to fully override postgres.fullname | `""` |
9393
| `commonLabels` | Labels to add to all deployed objects | `{}` |
9494
| `commonAnnotations` | Annotations to add to all deployed objects | `{}` |
95+
| `priorityClassName` | Priority class name to be used for the pods | `` |
9596

9697
### Pod annotations and labels
9798

charts/postgres/templates/statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ spec:
3030
{{- end }}
3131
spec:
3232
serviceAccountName: {{ include "postgres.serviceAccountName" . }}
33+
{{- if .Values.priorityClassName }}
34+
priorityClassName: {{ .Values.priorityClassName }}
35+
{{- end }}
3336
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
3437
{{- with (include "postgres.imagePullSecrets" .) }}
3538
{{- . | nindent 6 }}

charts/postgres/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@
391391
}
392392
}
393393
},
394+
"priorityClassName": {
395+
"type": "string"
396+
},
394397
"readinessProbe": {
395398
"type": "object",
396399
"properties": {

charts/postgres/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ fullnameOverride: ""
1414
commonLabels: {}
1515
## @param commonAnnotations Annotations to add to all deployed objects
1616
commonAnnotations: {}
17+
## @param priorityClassName Priority class name to be used for the pods
18+
priorityClassName: ""
1719

1820
## @section PostgreSQL image configuration
1921
image:

0 commit comments

Comments
 (0)