Skip to content

Commit

Permalink
Use template command is set
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Feb 27, 2024
1 parent f74a71f commit 48913ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/v1/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ func UpsertContainer(containers []core.Container, upsert core.Container) []core.
}

func MergeContainer(container core.Container, containerTemplate core.Container) core.Container {
container.Command = containerTemplate.Command
if len(containerTemplate.Command) > 0 {
container.Command = containerTemplate.Command
}
container.Args = meta.UpsertArgumentList(container.Args, containerTemplate.Args)
container.WorkingDir = containerTemplate.WorkingDir
container.EnvFrom = containerTemplate.EnvFrom
Expand Down

0 comments on commit 48913ca

Please sign in to comment.