Skip to content

Commit 0cf3ba9

Browse files
committed
chart: support configuring worker controller type
1 parent 5667124 commit 0cf3ba9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

charts/clusterplex/templates/worker.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ image:
88
imagePullPolicy: '{{ .Values.global.plexImage.imagePullPolicy }}'
99

1010
controller:
11-
type: statefulset
11+
type: '{{ .Values.worker.config.type | default "statefulset" }}'
1212
{{- if and .Values.worker.enabled (lt (.Values.worker.config.replicas | int) 1) }}
1313
{{- fail "Invalid value for worker.config.replicas. Must be greater than or equal to 1 when worker.enabled is true." }}
1414
{{- end }}
@@ -67,6 +67,9 @@ service:
6767
protocol: TCP
6868

6969
persistence:
70+
codecs:
71+
{{- toYaml .Values.worker.codecVolumes | nindent 4 }}
72+
enabled: {{ and .Values.worker.codecVolumes.enabled (eq .Values.worker.config.type "deployment") }}
7073
transcode:
7174
{{- toYaml .Values.global.sharedStorage.transcode | nindent 4 }}
7275
accessMode: ReadWriteMany
@@ -160,4 +163,4 @@ probes:
160163
{{- $_ := get .Values "worker" | mergeOverwrite $ctx.Values -}}
161164
{{- $_ = include "clusterplex.worker.hardcodedValues" . | fromYaml | merge $ctx.Values -}}
162165
{{- include "bjw-s.common.loader.all" $ctx }}
163-
{{ end }}
166+
{{ end }}

0 commit comments

Comments
 (0)