Skip to content

Commit

Permalink
Merge pull request #956 from DebakelOrakel/feat/support-priorityclass
Browse files Browse the repository at this point in the history
Support setting priority class of operator in Helm chart
  • Loading branch information
Kidswiss authored Jul 23, 2024
2 parents 365b38b + 5732367 commit 2db912f
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 @@ -84,6 +84,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 2db912f

Please sign in to comment.