Skip to content

Commit

Permalink
Support setting priority class of operator in Helm chart
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Feurer <[email protected]>
  • Loading branch information
DebakelOrakel committed May 28, 2024
1 parent 5d67b16 commit 5732367
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/k8up/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Document your changes in values.yaml and let `make docs:helm` generate this sect
| nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | Annotations to add to the Pod spec. |
| podSecurityContext | object | `{}` | Security context to add to the Pod spec. |
| priorityClassName | string | `""` | The name of the priority class to use. |
| rbac.create | bool | `true` | Create cluster roles and rolebinding. May need elevated permissions to create cluster roles and -bindings. |
| replicaCount | int | `1` | How many operator pods should run. Note: Operator features leader election for K8s 1.16 and later, so that only 1 pod is reconciling/scheduling jobs. Follower pods reduce interruption time as they're on hot standby when leader is unresponsive. |
| resources.limits.memory | string | `"256Mi"` | Memory limit of K8up operator. See [supported units][resource-units]. |
Expand Down
3 changes: 3 additions & 0 deletions charts/k8up/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
serviceAccountName: {{ template "k8up.serviceAccountName" . }}
{{- with .Values.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/k8up/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ podSecurityContext: {}
# -- Container security context
securityContext: {}

# -- The name of the priority class to use.
priorityClassName: ""

nodeSelector: {}

tolerations: []
Expand Down

0 comments on commit 5732367

Please sign in to comment.