Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions charts/connect/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ spec:
mountPath: "/streams"
readOnly: true
{{- end }}
{{- with .Values.deployment.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
18 changes: 18 additions & 0 deletions charts/connect/tests/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 7 additions & 1 deletion charts/connect/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}

Expand Down Expand Up @@ -255,7 +261,7 @@ extraVolumeMounts:
# - name: secret
# mountPath: /mnt/secret
# readOnly: true
#
#
# -- Configuration settings for resources in Redpanda Connect.
connectResources:
# -- Enable resources.
Expand Down