Skip to content

Commit 38b9322

Browse files
authored
imagepullpolicy field should not set in sandboxset webhook by default. (#97)
Signed-off-by: liheng <liheng.zms@alibaba-inc.com>
1 parent 3cf7005 commit 38b9322

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/utils/defaults/pod.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ func setDefaultInitContainers(containers []corev1.Container) {
4747
func setDefaultContainers(containers []corev1.Container) {
4848
for i := range containers {
4949
container := &containers[i]
50-
if container.ImagePullPolicy == "" {
51-
container.ImagePullPolicy = corev1.PullAlways
52-
}
5350
v1.SetDefaults_Container(container)
5451
setDefaultContainerPorts(container)
5552
setDefaultContainerEnv(container)

0 commit comments

Comments
 (0)