Skip to content

Commit 7e6fca0

Browse files
authored
fix: Init-config container resources to match main container. (#1515)
Fixes init-config container resources to match main container. Signed-off-by: chris-gooch <[email protected]>
1 parent 58666af commit 7e6fca0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/k8sutils/statefulset.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,10 @@ func generateInitContainerDef(role, name string, initcontainerParams initContain
613613
generateConfigVolumeMount(common.VolumeNameConfig),
614614
},
615615
}
616+
// Set init-config resources to match main container if present
617+
if containerParams.Resources != nil {
618+
container.Resources = *containerParams.Resources
619+
}
616620
if role == "sentinel" {
617621
container.Args = []string{"bootstrap", "--sentinel"}
618622
} else {

0 commit comments

Comments
 (0)