diff --git a/charts/connect/README.md b/charts/connect/README.md index 8551f3c092..86041957ec 100644 --- a/charts/connect/README.md +++ b/charts/connect/README.md @@ -176,6 +176,12 @@ Labels to add to Redpanda Connect Pods. **Default:** `{}` +### [deployment.priorityClassName](https://artifacthub.io/packages/helm/redpanda-data/connect?modal=values&path=deployment.priorityClassName) + +Kubernetes PriorityClass name to assign to Redpanda Connect Pods. The specified PriorityClass must already exist in the cluster before deployment. Leave empty (default) for standard scheduling priority. + +**Default:** not set + ### [deployment.readinessProbe](https://artifacthub.io/packages/helm/redpanda-data/connect?modal=values&path=deployment.readinessProbe) Configuration for the readiness probe that checks if the container is ready to accept traffic. diff --git a/charts/connect/templates/deployment.yaml b/charts/connect/templates/deployment.yaml index 4122cfaa69..b9f064555d 100644 --- a/charts/connect/templates/deployment.yaml +++ b/charts/connect/templates/deployment.yaml @@ -123,6 +123,9 @@ spec: mountPath: "/streams" readOnly: true {{- end }} + {{- with .Values.deployment.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/connect/tests/deployment_test.yaml b/charts/connect/tests/deployment_test.yaml index ee16788c01..e09c914cb6 100644 --- a/charts/connect/tests/deployment_test.yaml +++ b/charts/connect/tests/deployment_test.yaml @@ -240,6 +240,24 @@ tests: name: my-config-map name: streams + - it: should not set priorityClassName by default + set: + deployment: + rolloutConfigMap: false + asserts: + - isNull: + path: spec.template.spec.priorityClassName + + - it: should set priorityClassName when specified + set: + deployment: + rolloutConfigMap: false + priorityClassName: high-priority + asserts: + - equal: + path: spec.template.spec.priorityClassName + value: high-priority + - it: should allow custom volume mounts set: deployment: diff --git a/charts/connect/values.yaml b/charts/connect/values.yaml index 2fde4d825c..b8a3eb4e7b 100644 --- a/charts/connect/values.yaml +++ b/charts/connect/values.yaml @@ -58,6 +58,12 @@ deployment: # -- Restart policy for containers in the Pod. restartPolicy: Always + # -- Kubernetes PriorityClass name to assign to Redpanda Connect Pods. + # The specified PriorityClass must already exist in the cluster before deployment. + # Leave empty (default) for standard scheduling priority. + # @default -- not set + priorityClassName: "" + # -- Additional labels to apply to all resources created by this chart. commonLabels: {} @@ -255,7 +261,7 @@ extraVolumeMounts: # - name: secret # mountPath: /mnt/secret # readOnly: true -# +# # -- Configuration settings for resources in Redpanda Connect. connectResources: # -- Enable resources.