Skip to content

Commit 2bcd403

Browse files
committed
Add priorityClassName for operator helm chart
Signed-off-by: win5923 <[email protected]>
1 parent 348ef38 commit 2bcd403

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

helm-chart/kuberay-operator/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,13 @@ spec:
150150
| image.repository | string | `"quay.io/kuberay/operator"` | Image repository. |
151151
| image.tag | string | `"nightly"` | Image tag. |
152152
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. |
153+
| imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry |
154+
| nodeSelector | object | `{}` | Restrict to run on particular nodes. |
155+
| priorityClassName | string | `""` | Pod priorityClassName |
153156
| labels | object | `{}` | Extra labels. |
154157
| annotations | object | `{}` | Extra annotations. |
158+
| affinity | object | `{}` | Pod affinity |
159+
| tolerations | list | `[]` | Pod tolerations |
155160
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created. |
156161
| serviceAccount.name | string | `"kuberay-operator"` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. |
157162
| logging.stdoutEncoder | string | `"json"` | Log encoder to use for stdout (one of `json` or `console`). |

helm-chart/kuberay-operator/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ spec:
4949
securityContext:
5050
{{- toYaml . | nindent 8 }}
5151
{{- end }}
52+
{{- with .Values.priorityClassName }}
53+
priorityClassName: {{ . }}
54+
{{- end }}
5255
containers:
5356
- name: {{ .Chart.Name }}
5457
{{- with .Values.securityContext }}

helm-chart/kuberay-operator/values.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,27 @@ image:
2121
# -- Image pull policy.
2222
pullPolicy: IfNotPresent
2323

24+
# -- Secrets with credentials to pull images from a private registry
25+
imagePullSecrets: []
26+
27+
# -- Restrict to run on particular nodes.
28+
nodeSelector: {}
29+
30+
# -- Pod priorityClassName
31+
priorityClassName: ""
32+
2433
# -- Extra labels.
2534
labels: {}
2635

2736
# -- Extra annotations.
2837
annotations: {}
2938

39+
# -- Pod affinity
40+
affinity: {}
41+
42+
# -- Pod tolerations
43+
tolerations: []
44+
3045
serviceAccount:
3146
# -- Specifies whether a service account should be created.
3247
create: true

0 commit comments

Comments
 (0)