You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci(deploy-camunda): native --extra-values on matrix run with per-scenario overrides
Closes#6312.
Two gaps remained after #6375 shipped the CLI flag:
Gap B — upgrade flow never forwarded the file. The CLI already applied
--extra-values to Step 2 only (runner_upgrade.go nils Step 1's copy), but
the workflow job omitted EXTRA_VALUES entirely. Wire it: add the env var,
tee to the fixed path, guard with EXTRA_VALUES_ARGS, inject into the
matrix run invocation — mirroring the install-flow pattern.
Gap A — per-scenario extra-values. Scenarios can now declare their own
values files under extra-values in ci-test-config.yaml / the registry
format. appendScenarioExtraValues resolves relative paths against
chart-full-setup and appends them after the global --extra-values, so
per-scenario files win within the extra slot. Precedence:
chart defaults < global --extra-values < per-scenario extra-values < scenario layers
All three propagation hops are tested:
- TestLoadRegistryCarriesExtraValues: YAML → CIScenario
- TestGenerate_PropagatesExtraValues: CIScenario → Entry
- TestAppendScenarioExtraValues: precedence + path resolution
- TestRegistryValidatorRejectsMissingExtraValues: validator parity
Also debloated three flag descriptions in cmd/matrix.go.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: scripts/deploy-camunda/cmd/matrix.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -610,13 +610,13 @@ This command calls deploy.Execute() for each matrix entry.`,
610
610
f.BoolVar(&ensureDockerHub, "ensure-docker-hub", false, "Ensure Docker Hub registry pull secret is created in each entry's namespace")
611
611
f.BoolVar(&useLatest, "use-latest", false, "Use values-latest.yaml from each chart root instead of values-digest.yaml")
612
612
f.BoolVar(&useQA, "use-qa", false, "Force the base-qa layer to be included for all entries, regardless of per-scenario qa config")
613
-
f.BoolVar(&forceImageOverrides, "force-image-overrides", false, "Bypass OCI immutability guard: allow Go-layer image overlays (base-image-tags, chart-root overlays) even when --chart-ref is set. Note: env-file IMAGE_TAG keys stripped at the workflow layer are not restored by this flag.")
613
+
f.BoolVar(&forceImageOverrides, "force-image-overrides", false, "Bypass OCI immutability guard: allow chart-root image overlays when --chart-ref is set (env-file IMAGE_TAG keys stripped at the workflow layer are not restored).")
f.StringVar(&logDir, "log-dir", "", "Write logs to this directory and show a live status table (auto-generated when running in a TTY)")
616
616
f.StringArrayVar(&extraHelmArgs, "extra-helm-arg", nil, "Extra argument appended to every helm command (repeatable, e.g. --extra-helm-arg=--set-file=global.license.secret.inlineSecret=/tmp/license.txt)")
617
617
f.StringSliceVar(&extraHelmSets, "extra-helm-set", nil, "Extra helm --set key=value pair applied to every entry (comma-separated or repeatable, e.g. orchestration.upgrade.allowPreReleaseImages=true)")
618
-
f.StringArrayVar(&extraValues, "extra-values", nil, "Additional Helm values files appended last for every entry (repeatable; NOT comma-split, unlike `deploy --extra-values` — use the flag multiple times for multiple files). Use this, not --extra-helm-arg=--values=…, for image overrides; only this path triggers the digest-overlay strip. In two-step upgrade flows the file is applied to Step 2 only — Step 1 installs the previously released chart and intentionally ignores --extra-values.")
619
-
f.StringVar(&namespaceOverride, "namespace-override", "", "Override the computed namespace for every entry. Use only with filters that narrow the run to a single entry (typically called from per-scenario CI workflows that pre-create the namespace).")
618
+
f.StringArrayVar(&extraValues, "extra-values", nil, "Additional Helm values files appended last for every entry (repeatable; not comma-split— use the flag multiple times for multiple files). Engages digest-overlay strip; prefer over --extra-helm-arg=--values=. In two-step upgrade flows, applied to Step 2 only.")
619
+
f.StringVar(&namespaceOverride, "namespace-override", "", "Override the computed namespace for every entry (use with filters that narrow to a single entry — per-scenario CI workflows that pre-create the namespace).")
620
620
f.StringVar(&chartRef, "chart-ref", "", "Override chart source with an OCI reference or .tgz path (e.g., oci://registry.camunda.cloud/team-distribution/camunda-platform). Values are still resolved from the local repo via --repo-root.")
621
621
f.StringVar(&chartRefVersion, "chart-version", "", "Chart version to install from --chart-ref (e.g., 13-rc-latest). Only meaningful when --chart-ref is set.")
0 commit comments