@@ -38,14 +38,12 @@ Expects context with:
3838{{- $containerSecurityContextLogGroomerSidecar := include "containerSecurityContext" (list $mergedConfig.logGroomerSidecar .Values) }}
3939{{- $containerSecurityContextWaitForMigrations := include "containerSecurityContext" (list $mergedConfig.waitForMigrations .Values) }}
4040{{- $containerLifecycleHooks := or $mergedConfig.containerLifecycleHooks .Values.containerLifecycleHooks }}
41- {{- /* Prepare args: use per- bundle args if enabled, otherwise use default args */}}
41+ {{- /* Prepare args: append -- bundle-name to the base args for per-bundle deployments */}}
4242{{- $args := $mergedConfig.args }}
43- {{- if and $deployPerBundle .Values.dagProcessor.deployPerBundle.args }}
44- {{- $args = list }}
45- {{- range .Values.dagProcessor.deployPerBundle.args }}
46- {{- $arg := . | toString | replace "{{ bundleName }}" $bundleName }}
47- {{- $args = append $args $arg }}
48- {{- end }}
43+ {{- if $deployPerBundle }}
44+ {{- $lastIdx := sub (len $args) 1 }}
45+ {{- $lastArg := printf "%s --bundle-name %s" (index $args (int $lastIdx)) $bundleName }}
46+ {{- $args = mustInitial $args | append $lastArg }}
4947{{- end }}
5048{{- /* Determine deployment name suffix */}}
5149{{- $nameSuffix := "" }}
@@ -323,7 +321,7 @@ spec:
323321{{- if eq $enabled nil}}
324322 {{ $enabled = ternary true false (semverCompare ">=3.0.0" .Values.airflowVersion) }}
325323{{- end }}
326- {{- $deployPerBundle := .Values.dagProcessor.deployPerBundle.enabled | default false }}
324+ {{- $deployPerBundle := .Values.dagProcessor.deployPerBundle | default false }}
327325{{- if $enabled }}
328326 {{- if not $deployPerBundle }}
329327 {{- /* Single deployment mode: use base dagProcessor config */}}
@@ -334,7 +332,7 @@ spec:
334332 {{- $firstBundle := true }}
335333 {{- range $bundle := .Values.dagProcessor.dagBundleConfigList }}
336334 {{- $bundleName := $bundle.name }}
337- {{- $bundleOverrides := index $.Values.dagProcessor.deployPerBundle.bundleOverrides $bundleName | default dict | deepCopy }}
335+ {{- $bundleOverrides := $bundle.deploymentOverride | default dict | deepCopy }}
338336 {{- $baseConfig := $.Values.dagProcessor | deepCopy }}
339337 {{- $mergedConfig := mergeOverwrite $baseConfig $bundleOverrides }}
340338 {{- $_ := set $mergedConfig "dagBundleConfigList" $.Values.dagProcessor.dagBundleConfigList }}
0 commit comments