Skip to content

Commit

Permalink
feat(helm): add the ability to set the priorityClassName (external-se…
Browse files Browse the repository at this point in the history
…crets#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.
  • Loading branch information
Niksko committed Nov 5, 2020
1 parent 6b819ee commit e719c87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/kubernetes-external-secrets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ The following table lists the configurable parameters of the `kubernetes-externa
| `serviceAccount.annotations` | Annotations to be added to service account | `nil` |
| `podAnnotations` | Annotations to be added to pods | `{}` |
| `podLabels` | Additional labels to be added to pods | `{}` |
| `priorityClassName` | Priority class to be assigned to pods
| `replicaCount` | Number of replicas | `1` |
| `nodeSelector` | node labels for pod assignment | `{}` |
| `tolerations` | List of node taints to tolerate (requires Kubernetes >= 1.6) | `[]` |
Expand Down
3 changes: 3 additions & 0 deletions charts/kubernetes-external-secrets/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ spec:
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/kubernetes-external-secrets/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ fullnameOverride: ""
podAnnotations: {}
podLabels: {}

priorityClassName: ""

dnsConfig: {}

securityContext:
Expand Down

0 comments on commit e719c87

Please sign in to comment.