Skip to content

feat(job): add per-container env_variables override in module config - #172

Open
mabdh wants to merge 2 commits into
mainfrom
job-module-env-override
Open

feat(job): add per-container env_variables override in module config#172
mabdh wants to merge 2 commits into
mainfrom
job-module-env-override

Conversation

@mabdh

@mabdh mabdh commented Jul 27, 2026

Copy link
Copy Markdown
Member

Dex re-dumps masked placeholder values into a new job's env vars on Create; masking's Restore only recovers a real secret on Update, so Create ships with no real secret. The job module driver config now accepts containers..env_variables overrides that are overlaid onto the matching container after the existing global env merge, with the module value always winning regardless of whether the client sent a real or masked value. Independent of masking/sensitive_configs.

mabdh and others added 2 commits July 27, 2026 16:05
Dex re-dumps masked placeholder values into a new job's env vars on
Create; masking's Restore only recovers a real secret on Update, so
Create ships with no real secret. The job module driver config now
accepts containers.<name>.env_variables overrides that are overlaid
onto the matching container after the existing global env merge, with
the module value always winning regardless of whether the client sent
a real or masked value. Independent of masking/sensitive_configs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…mpty

DriverFactory unmarshaled into &kd where kd was already *kubeDriver,
so json.Unmarshal received a **kubeDriver. A null/empty module Configs
reset kd itself to nil (per encoding/json's null-pointer semantics),
returning a non-nil module.Driver interface wrapping a nil pointer.
The first field dereference in Output (m.TolerationMode) then
segfaulted — hit in production when a job resource's kube_cluster
dependency forced a live Output call on a kubernetes module whose
registration Configs was empty.

Unmarshal into a local value instead, so the returned driver is always
non-nil even with empty/null config; log a warning in that case.
Applied the same fix to flink's DriverFactory, which had the identical
pattern.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant