diff --git a/helm-chart/kuberay-operator/README.md b/helm-chart/kuberay-operator/README.md index f2799c2f5e0..bad19549069 100644 --- a/helm-chart/kuberay-operator/README.md +++ b/helm-chart/kuberay-operator/README.md @@ -150,8 +150,13 @@ spec: | image.repository | string | `"quay.io/kuberay/operator"` | Image repository. | | image.tag | string | `"nightly"` | Image tag. | | image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. | +| imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry | +| nodeSelector | object | `{}` | Restrict to run on particular nodes. | +| priorityClassName | string | `""` | Pod priorityClassName | | labels | object | `{}` | Extra labels. | | annotations | object | `{}` | Extra annotations. | +| affinity | object | `{}` | Pod affinity | +| tolerations | list | `[]` | Pod tolerations | | serviceAccount.create | bool | `true` | Specifies whether a service account should be created. | | 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. | | logging.stdoutEncoder | string | `"json"` | Log encoder to use for stdout (one of `json` or `console`). | diff --git a/helm-chart/kuberay-operator/templates/deployment.yaml b/helm-chart/kuberay-operator/templates/deployment.yaml index 2557ac7be1f..588018a085f 100644 --- a/helm-chart/kuberay-operator/templates/deployment.yaml +++ b/helm-chart/kuberay-operator/templates/deployment.yaml @@ -49,6 +49,9 @@ spec: securityContext: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} containers: - name: {{ .Chart.Name }} {{- with .Values.securityContext }} diff --git a/helm-chart/kuberay-operator/tests/deployment_test.yaml b/helm-chart/kuberay-operator/tests/deployment_test.yaml index b9b319bc7eb..42ece05ef31 100644 --- a/helm-chart/kuberay-operator/tests/deployment_test.yaml +++ b/helm-chart/kuberay-operator/tests/deployment_test.yaml @@ -268,6 +268,14 @@ tests: operator: Exists effect: NoSchedule + - it: Should add priorityClassName if `priorityClassName` is set + set: + priorityClassName: high-priority + asserts: + - equal: + path: spec.template.spec.priorityClassName + value: high-priority + - it: Should use custom reconcile concurrency when set set: reconcileConcurrency: 5 diff --git a/helm-chart/kuberay-operator/values.yaml b/helm-chart/kuberay-operator/values.yaml index 9d9008a5083..0b881d08576 100644 --- a/helm-chart/kuberay-operator/values.yaml +++ b/helm-chart/kuberay-operator/values.yaml @@ -21,12 +21,27 @@ image: # -- Image pull policy. pullPolicy: IfNotPresent +# -- Secrets with credentials to pull images from a private registry +imagePullSecrets: [] + +# -- Restrict to run on particular nodes. +nodeSelector: {} + +# -- Pod priorityClassName +priorityClassName: "" + # -- Extra labels. labels: {} # -- Extra annotations. annotations: {} +# -- Pod affinity +affinity: {} + +# -- Pod tolerations +tolerations: [] + serviceAccount: # -- Specifies whether a service account should be created. create: true