Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit d35bf95

Browse files
committed
builtin/k8s: Ensure pod.container.static_environment is applied
1 parent 993c275 commit d35bf95

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changelog/3197.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
builtin/k8s: Ensure pod.container.static_environment is applied
3+
```

builtin/k8s/platform.go

+5
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,11 @@ func (p *Platform) resourceDeploymentCreate(
640640
for k, v := range p.config.StaticEnvVars {
641641
envVars[k] = v
642642
}
643+
if p.config.Pod != nil && p.config.Pod.Container != nil {
644+
for k, v := range p.config.Pod.Container.StaticEnvVars {
645+
envVars[k] = v
646+
}
647+
}
643648
for k, v := range deployConfig.Env() {
644649
envVars[k] = v
645650
}

0 commit comments

Comments
 (0)