Skip to content

Commit 6068028

Browse files
tkatilapfl
authored andcommitted
operator: add missing ImagePullPolicy for the main discovery container
Signed-off-by: Tuomas Katila <[email protected]>
1 parent f3ff09e commit 6068028

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/controller/networkconfiguration_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ func updateGaudiScaleOutDaemonSet(ds *apps.DaemonSet, netconf *networkv1alpha1.N
301301
ds.Name = netconf.Name
302302
ds.ObjectMeta.Namespace = namespace
303303

304+
ds.Spec.Template.Spec.Containers[0].ImagePullPolicy = v1.PullPolicy(netconf.Spec.GaudiScaleOut.PullPolicy)
305+
304306
if len(netconf.Spec.NodeSelector) > 0 {
305307
ds.Spec.Template.Spec.NodeSelector = netconf.Spec.NodeSelector
306308
}

0 commit comments

Comments
 (0)