Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Commit e719c87

Browse files
authored
feat(helm): add the ability to set the priorityClassName (#534)
This is a common feature of many Helm charts, and is important for ensuring that the external-secrets pod is scheduled with a higher priority than other workloads.
1 parent 6b819ee commit e719c87

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

charts/kubernetes-external-secrets/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ The following table lists the configurable parameters of the `kubernetes-externa
103103
| `serviceAccount.annotations` | Annotations to be added to service account | `nil` |
104104
| `podAnnotations` | Annotations to be added to pods | `{}` |
105105
| `podLabels` | Additional labels to be added to pods | `{}` |
106+
| `priorityClassName` | Priority class to be assigned to pods
106107
| `replicaCount` | Number of replicas | `1` |
107108
| `nodeSelector` | node labels for pod assignment | `{}` |
108109
| `tolerations` | List of node taints to tolerate (requires Kubernetes >= 1.6) | `[]` |

charts/kubernetes-external-secrets/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ spec:
7676
securityContext:
7777
{{- toYaml . | nindent 8 }}
7878
{{- end }}
79+
{{- if .Values.priorityClassName }}
80+
priorityClassName: {{ .Values.priorityClassName }}
81+
{{- end }}
7982
{{- with .Values.nodeSelector }}
8083
nodeSelector:
8184
{{- toYaml . | nindent 8 }}

charts/kubernetes-external-secrets/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ fullnameOverride: ""
8585
podAnnotations: {}
8686
podLabels: {}
8787

88+
priorityClassName: ""
89+
8890
dnsConfig: {}
8991

9092
securityContext:

0 commit comments

Comments
 (0)