Skip to content

Commit

Permalink
fix: inject env variables to all pod containers (#634)
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
  • Loading branch information
odubajDT authored May 14, 2024
1 parent 275fe4e commit b21378e
Show file tree
Hide file tree
Showing 5 changed files with 243 additions and 298 deletions.
3 changes: 1 addition & 2 deletions common/flagdinjector/flagdinjector.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ func (fi *FlagdContainerInjector) InjectFlagd(

flagdContainer.Env = append(flagdContainer.Env, flagSourceConfig.ToEnvVars()...)
for i := 0; i < len(podSpec.Containers); i++ {
cntr := podSpec.Containers[i]
cntr.Env = append(cntr.Env, flagdContainer.Env...)
podSpec.Containers[i].Env = append(podSpec.Containers[i].Env, flagdContainer.Env...)
}

// append sync provider args
Expand Down
Loading

0 comments on commit b21378e

Please sign in to comment.