Skip to content

Commit

Permalink
Use image pull policy IfNotPresent as default
Browse files Browse the repository at this point in the history
Switch to use `IfNotPresent` as the default image pull policy for node-exec.
  • Loading branch information
HeavyWombat committed May 25, 2021
1 parent 462db3a commit 08fe5a5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/havener/kubexec.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@ func (h *Hvnr) preparePodOnNode(node corev1.Node, namespace string, name string,
RestartPolicy: corev1.RestartPolicyNever,
Containers: []corev1.Container{
{
Name: "node-exec-container",
Image: containerImage,
Stdin: useStdin,
Name: "node-exec-container",
Image: containerImage,
ImagePullPolicy: corev1.PullIfNotPresent,
Stdin: useStdin,
SecurityContext: &corev1.SecurityContext{
Privileged: &trueThat,
},
Expand Down

0 comments on commit 08fe5a5

Please sign in to comment.