From ef090bb5bfbef6f4c87be3ae6ada0e27a1551944 Mon Sep 17 00:00:00 2001 From: Christian Weichel Date: Thu, 15 Jul 2021 14:01:33 +0000 Subject: [PATCH] [ws-manager] Pull images if not present --- components/ws-manager/pkg/manager/create.go | 2 +- .../ws-manager/pkg/manager/testdata/cdwp_admission.golden | 2 +- .../pkg/manager/testdata/cdwp_empty_resource_req.golden | 2 +- .../ws-manager/pkg/manager/testdata/cdwp_fixedresources.golden | 2 +- .../pkg/manager/testdata/cdwp_fullworkspacebackup.golden | 2 +- components/ws-manager/pkg/manager/testdata/cdwp_ghost.golden | 2 +- components/ws-manager/pkg/manager/testdata/cdwp_prebuild.golden | 2 +- .../pkg/manager/testdata/cdwp_prebuild_template.golden | 2 +- .../testdata/cdwp_prebuild_template_override_resources.golden | 2 +- components/ws-manager/pkg/manager/testdata/cdwp_probe.golden | 2 +- .../ws-manager/pkg/manager/testdata/cdwp_readinessprobe.golden | 2 +- components/ws-manager/pkg/manager/testdata/cdwp_tasks.golden | 2 +- components/ws-manager/pkg/manager/testdata/cdwp_template.golden | 2 +- components/ws-manager/pkg/manager/testdata/cdwp_timeout.golden | 2 +- components/ws-manager/pkg/manager/testdata/cdwp_userns.golden | 2 +- .../ws-manager/pkg/manager/testdata/getWorkspaces_podOnly.json | 2 +- .../pkg/manager/testdata/status_brokenScheduler_UNKNOWN00.json | 2 +- .../pkg/manager/testdata/status_containerd4214_STOPPING00.json | 2 +- .../pkg/manager/testdata/status_disposal_STOPPED01.json | 2 +- .../pkg/manager/testdata/status_disposal_STOPPED02.json | 2 +- .../pkg/manager/testdata/status_disposal_STOPPED03.json | 2 +- .../pkg/manager/testdata/status_disposal_STOPPING01.json | 2 +- .../pkg/manager/testdata/status_disposal_STOPPING02.json | 2 +- .../ws-manager/pkg/manager/testdata/status_errimgpull.json | 2 +- .../pkg/manager/testdata/status_errimgpull_CREATING01.json | 2 +- .../testdata/status_failedBeforeStopping_explicitFail.json | 2 +- .../pkg/manager/testdata/status_failedLogs_UNKNOWN00.json | 2 +- .../testdata/status_failedPending_evicted_UNKNOWN01.json | 2 +- .../testdata/status_failedPending_evicted_UNKNOWN02.json | 2 +- .../pkg/manager/testdata/status_failedTheiaMount_PENDING00.json | 2 +- .../manager/testdata/status_failedWorkspaceMount_PENDING00.json | 2 +- .../pkg/manager/testdata/status_firstUserActivity_RUNNING.json | 2 +- .../pkg/manager/testdata/status_imagespec_RUNNING00.json | 2 +- .../ws-manager/pkg/manager/testdata/status_interrupted.json | 2 +- .../pkg/manager/testdata/status_interrupted_CREATING00.json | 2 +- .../status_interrupted_networkNotReady_1_event_only.json | 2 +- ...status_interrupted_networkNotReady_2_event_and_exitcode.json | 2 +- ...tus_interrupted_networkNotReady_3_recovered_CONSTRUCTED.json | 2 +- .../ws-manager/pkg/manager/testdata/status_ownerToken.json | 2 +- .../pkg/manager/testdata/status_prebuildFail_STOPPED00.json | 2 +- .../pkg/manager/testdata/status_prebuildFail_STOPPING00.json | 2 +- .../pkg/manager/testdata/status_stuckInCreating_CREATING00.json | 2 +- components/ws-manager/pkg/manager/testdata/stopping_basic.json | 2 +- .../pkg/manager/testdata/timeout_interrupted_noActivity.json | 2 +- .../pkg/manager/testdata/timeout_interrupted_withActivity.json | 2 +- 45 files changed, 45 insertions(+), 45 deletions(-) diff --git a/components/ws-manager/pkg/manager/create.go b/components/ws-manager/pkg/manager/create.go index f3fa5fe04a346a..d4d9f212ad203a 100644 --- a/components/ws-manager/pkg/manager/create.go +++ b/components/ws-manager/pkg/manager/create.go @@ -468,7 +468,7 @@ func (m *Manager) createWorkspaceContainer(startContext *startWorkspaceContext) Name: "workspace", Image: image, SecurityContext: sec, - ImagePullPolicy: corev1.PullAlways, + ImagePullPolicy: corev1.PullIfNotPresent, Ports: []corev1.ContainerPort{ {ContainerPort: startContext.IDEPort}, }, diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_admission.golden b/components/ws-manager/pkg/manager/testdata/cdwp_admission.golden index 75b58dce505a13..7f9574642bcc63 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_admission.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_admission.golden @@ -169,7 +169,7 @@ "failureThreshold": 600 }, "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_empty_resource_req.golden b/components/ws-manager/pkg/manager/testdata/cdwp_empty_resource_req.golden index b5d93771abfe86..fb481893147e14 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_empty_resource_req.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_empty_resource_req.golden @@ -163,7 +163,7 @@ "failureThreshold": 600 }, "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_fixedresources.golden b/components/ws-manager/pkg/manager/testdata/cdwp_fixedresources.golden index 1cad13495eb7a0..7ae8a714b5e80a 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_fixedresources.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_fixedresources.golden @@ -166,7 +166,7 @@ "failureThreshold": 600 }, "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_fullworkspacebackup.golden b/components/ws-manager/pkg/manager/testdata/cdwp_fullworkspacebackup.golden index e584d914719e6c..73118896723352 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_fullworkspacebackup.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_fullworkspacebackup.golden @@ -155,7 +155,7 @@ "failureThreshold": 600 }, "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_ghost.golden b/components/ws-manager/pkg/manager/testdata/cdwp_ghost.golden index 8060b8f93fdaa5..8279dcad8f2b7e 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_ghost.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_ghost.golden @@ -158,7 +158,7 @@ } ], "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_prebuild.golden b/components/ws-manager/pkg/manager/testdata/cdwp_prebuild.golden index d0aa3e77e160ff..e83457caae7aa6 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_prebuild.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_prebuild.golden @@ -169,7 +169,7 @@ "failureThreshold": 600 }, "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_prebuild_template.golden b/components/ws-manager/pkg/manager/testdata/cdwp_prebuild_template.golden index 22a733c2020a8d..a508e33ec4ec6d 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_prebuild_template.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_prebuild_template.golden @@ -173,7 +173,7 @@ "failureThreshold": 600 }, "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_prebuild_template_override_resources.golden b/components/ws-manager/pkg/manager/testdata/cdwp_prebuild_template_override_resources.golden index 95a24e6c259e2d..52a8f6d9ee5974 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_prebuild_template_override_resources.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_prebuild_template_override_resources.golden @@ -173,7 +173,7 @@ "failureThreshold": 600 }, "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_probe.golden b/components/ws-manager/pkg/manager/testdata/cdwp_probe.golden index 8bbadbfc4ead69..65da3ebf0bf120 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_probe.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_probe.golden @@ -169,7 +169,7 @@ "failureThreshold": 600 }, "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_readinessprobe.golden b/components/ws-manager/pkg/manager/testdata/cdwp_readinessprobe.golden index 37c0914de644f0..1e5494a6189e19 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_readinessprobe.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_readinessprobe.golden @@ -165,7 +165,7 @@ "failureThreshold": 600 }, "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_tasks.golden b/components/ws-manager/pkg/manager/testdata/cdwp_tasks.golden index b240c6f502534c..ad2c2274667131 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_tasks.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_tasks.golden @@ -169,7 +169,7 @@ "failureThreshold": 600 }, "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_template.golden b/components/ws-manager/pkg/manager/testdata/cdwp_template.golden index a27902a26ee265..f53a84f3f1a63b 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_template.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_template.golden @@ -169,7 +169,7 @@ "failureThreshold": 600 }, "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_timeout.golden b/components/ws-manager/pkg/manager/testdata/cdwp_timeout.golden index 5702c827158e85..a3c292f9707ad8 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_timeout.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_timeout.golden @@ -170,7 +170,7 @@ "failureThreshold": 600 }, "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_userns.golden b/components/ws-manager/pkg/manager/testdata/cdwp_userns.golden index 44edbf7e9387a5..aa219e8de4b6cf 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_userns.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_userns.golden @@ -165,7 +165,7 @@ "failureThreshold": 600 }, "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/getWorkspaces_podOnly.json b/components/ws-manager/pkg/manager/testdata/getWorkspaces_podOnly.json index 88f42a946367d5..c2f64c3d3df572 100644 --- a/components/ws-manager/pkg/manager/testdata/getWorkspaces_podOnly.json +++ b/components/ws-manager/pkg/manager/testdata/getWorkspaces_podOnly.json @@ -131,7 +131,7 @@ } ], "image": "eu.gcr.io/gitpod-dev/workspace-images:a4d95e78185ee17b09e21a79939393f4eec08d6c247c1b52696172db0a6349f7", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "name": "workspace", "ports": [ { diff --git a/components/ws-manager/pkg/manager/testdata/status_brokenScheduler_UNKNOWN00.json b/components/ws-manager/pkg/manager/testdata/status_brokenScheduler_UNKNOWN00.json index 08435b3362285c..2f3f9bc2d9f912 100644 --- a/components/ws-manager/pkg/manager/testdata/status_brokenScheduler_UNKNOWN00.json +++ b/components/ws-manager/pkg/manager/testdata/status_brokenScheduler_UNKNOWN00.json @@ -174,7 +174,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_containerd4214_STOPPING00.json b/components/ws-manager/pkg/manager/testdata/status_containerd4214_STOPPING00.json index a5f467a5643d05..17d14eb80b09fd 100644 --- a/components/ws-manager/pkg/manager/testdata/status_containerd4214_STOPPING00.json +++ b/components/ws-manager/pkg/manager/testdata/status_containerd4214_STOPPING00.json @@ -218,7 +218,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPED01.json b/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPED01.json index 4aefdef6e7f2c6..5c90c441decf12 100644 --- a/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPED01.json +++ b/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPED01.json @@ -188,7 +188,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPED02.json b/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPED02.json index 33861336eb9927..9954245356f94e 100644 --- a/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPED02.json +++ b/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPED02.json @@ -188,7 +188,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPED03.json b/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPED03.json index d85a7b116490c0..087b44dd17fcbe 100644 --- a/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPED03.json +++ b/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPED03.json @@ -188,7 +188,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPING01.json b/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPING01.json index 4f4596d6610bd4..2c72228d034f7d 100644 --- a/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPING01.json +++ b/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPING01.json @@ -191,7 +191,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPING02.json b/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPING02.json index af8bbb7c29cf0e..2236fb98a01554 100644 --- a/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPING02.json +++ b/components/ws-manager/pkg/manager/testdata/status_disposal_STOPPING02.json @@ -191,7 +191,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_errimgpull.json b/components/ws-manager/pkg/manager/testdata/status_errimgpull.json index ef8167730aebdd..d37b7f45dc7cc1 100644 --- a/components/ws-manager/pkg/manager/testdata/status_errimgpull.json +++ b/components/ws-manager/pkg/manager/testdata/status_errimgpull.json @@ -161,7 +161,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_errimgpull_CREATING01.json b/components/ws-manager/pkg/manager/testdata/status_errimgpull_CREATING01.json index b21eb72b30ff74..69d6e67da54460 100644 --- a/components/ws-manager/pkg/manager/testdata/status_errimgpull_CREATING01.json +++ b/components/ws-manager/pkg/manager/testdata/status_errimgpull_CREATING01.json @@ -159,7 +159,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_failedBeforeStopping_explicitFail.json b/components/ws-manager/pkg/manager/testdata/status_failedBeforeStopping_explicitFail.json index b37ea3f284aaad..669e58cf44553a 100644 --- a/components/ws-manager/pkg/manager/testdata/status_failedBeforeStopping_explicitFail.json +++ b/components/ws-manager/pkg/manager/testdata/status_failedBeforeStopping_explicitFail.json @@ -173,7 +173,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_failedLogs_UNKNOWN00.json b/components/ws-manager/pkg/manager/testdata/status_failedLogs_UNKNOWN00.json index e6d427dc7ddde0..c47388c9eb3f82 100644 --- a/components/ws-manager/pkg/manager/testdata/status_failedLogs_UNKNOWN00.json +++ b/components/ws-manager/pkg/manager/testdata/status_failedLogs_UNKNOWN00.json @@ -170,7 +170,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_failedPending_evicted_UNKNOWN01.json b/components/ws-manager/pkg/manager/testdata/status_failedPending_evicted_UNKNOWN01.json index 6cb543e74ef128..2b0e94604ea357 100644 --- a/components/ws-manager/pkg/manager/testdata/status_failedPending_evicted_UNKNOWN01.json +++ b/components/ws-manager/pkg/manager/testdata/status_failedPending_evicted_UNKNOWN01.json @@ -96,7 +96,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_failedPending_evicted_UNKNOWN02.json b/components/ws-manager/pkg/manager/testdata/status_failedPending_evicted_UNKNOWN02.json index 9938228ad44002..ce92c924e1e811 100644 --- a/components/ws-manager/pkg/manager/testdata/status_failedPending_evicted_UNKNOWN02.json +++ b/components/ws-manager/pkg/manager/testdata/status_failedPending_evicted_UNKNOWN02.json @@ -101,7 +101,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_failedTheiaMount_PENDING00.json b/components/ws-manager/pkg/manager/testdata/status_failedTheiaMount_PENDING00.json index e5e550752991b8..5d01477d214f6a 100644 --- a/components/ws-manager/pkg/manager/testdata/status_failedTheiaMount_PENDING00.json +++ b/components/ws-manager/pkg/manager/testdata/status_failedTheiaMount_PENDING00.json @@ -170,7 +170,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_failedWorkspaceMount_PENDING00.json b/components/ws-manager/pkg/manager/testdata/status_failedWorkspaceMount_PENDING00.json index ccbe6b668469b6..79a0455bd9cb61 100644 --- a/components/ws-manager/pkg/manager/testdata/status_failedWorkspaceMount_PENDING00.json +++ b/components/ws-manager/pkg/manager/testdata/status_failedWorkspaceMount_PENDING00.json @@ -170,7 +170,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_firstUserActivity_RUNNING.json b/components/ws-manager/pkg/manager/testdata/status_firstUserActivity_RUNNING.json index c1c594901178d7..9fe210efc2a2f5 100644 --- a/components/ws-manager/pkg/manager/testdata/status_firstUserActivity_RUNNING.json +++ b/components/ws-manager/pkg/manager/testdata/status_firstUserActivity_RUNNING.json @@ -98,7 +98,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_imagespec_RUNNING00.json b/components/ws-manager/pkg/manager/testdata/status_imagespec_RUNNING00.json index 96f00021708305..a3c494e6b1d2e5 100644 --- a/components/ws-manager/pkg/manager/testdata/status_imagespec_RUNNING00.json +++ b/components/ws-manager/pkg/manager/testdata/status_imagespec_RUNNING00.json @@ -156,7 +156,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_interrupted.json b/components/ws-manager/pkg/manager/testdata/status_interrupted.json index b3b71fb5a7873d..b9990608b52768 100644 --- a/components/ws-manager/pkg/manager/testdata/status_interrupted.json +++ b/components/ws-manager/pkg/manager/testdata/status_interrupted.json @@ -159,7 +159,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_interrupted_CREATING00.json b/components/ws-manager/pkg/manager/testdata/status_interrupted_CREATING00.json index d9a9098f0c644f..5e272a8304b5db 100644 --- a/components/ws-manager/pkg/manager/testdata/status_interrupted_CREATING00.json +++ b/components/ws-manager/pkg/manager/testdata/status_interrupted_CREATING00.json @@ -156,7 +156,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_interrupted_networkNotReady_1_event_only.json b/components/ws-manager/pkg/manager/testdata/status_interrupted_networkNotReady_1_event_only.json index 28bf095986a001..b401dcaed1add3 100644 --- a/components/ws-manager/pkg/manager/testdata/status_interrupted_networkNotReady_1_event_only.json +++ b/components/ws-manager/pkg/manager/testdata/status_interrupted_networkNotReady_1_event_only.json @@ -96,7 +96,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_interrupted_networkNotReady_2_event_and_exitcode.json b/components/ws-manager/pkg/manager/testdata/status_interrupted_networkNotReady_2_event_and_exitcode.json index 0d8626efd99516..3b94bddccda79e 100644 --- a/components/ws-manager/pkg/manager/testdata/status_interrupted_networkNotReady_2_event_and_exitcode.json +++ b/components/ws-manager/pkg/manager/testdata/status_interrupted_networkNotReady_2_event_and_exitcode.json @@ -161,7 +161,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_interrupted_networkNotReady_3_recovered_CONSTRUCTED.json b/components/ws-manager/pkg/manager/testdata/status_interrupted_networkNotReady_3_recovered_CONSTRUCTED.json index 94585eabfce296..e8fa776bacdc97 100644 --- a/components/ws-manager/pkg/manager/testdata/status_interrupted_networkNotReady_3_recovered_CONSTRUCTED.json +++ b/components/ws-manager/pkg/manager/testdata/status_interrupted_networkNotReady_3_recovered_CONSTRUCTED.json @@ -161,7 +161,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_ownerToken.json b/components/ws-manager/pkg/manager/testdata/status_ownerToken.json index 256c3997a17b15..f93dd52a1de39e 100644 --- a/components/ws-manager/pkg/manager/testdata/status_ownerToken.json +++ b/components/ws-manager/pkg/manager/testdata/status_ownerToken.json @@ -100,7 +100,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_prebuildFail_STOPPED00.json b/components/ws-manager/pkg/manager/testdata/status_prebuildFail_STOPPED00.json index f0e3ba99553fb6..5088d884e4822f 100644 --- a/components/ws-manager/pkg/manager/testdata/status_prebuildFail_STOPPED00.json +++ b/components/ws-manager/pkg/manager/testdata/status_prebuildFail_STOPPED00.json @@ -211,7 +211,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_prebuildFail_STOPPING00.json b/components/ws-manager/pkg/manager/testdata/status_prebuildFail_STOPPING00.json index 79a60132fb4a56..99a70e1ecc3009 100644 --- a/components/ws-manager/pkg/manager/testdata/status_prebuildFail_STOPPING00.json +++ b/components/ws-manager/pkg/manager/testdata/status_prebuildFail_STOPPING00.json @@ -206,7 +206,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/status_stuckInCreating_CREATING00.json b/components/ws-manager/pkg/manager/testdata/status_stuckInCreating_CREATING00.json index 170867dbd1c8e0..5c9cc402e12594 100644 --- a/components/ws-manager/pkg/manager/testdata/status_stuckInCreating_CREATING00.json +++ b/components/ws-manager/pkg/manager/testdata/status_stuckInCreating_CREATING00.json @@ -98,7 +98,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/stopping_basic.json b/components/ws-manager/pkg/manager/testdata/stopping_basic.json index 09bee7974e10bb..ef1b2740a856e8 100644 --- a/components/ws-manager/pkg/manager/testdata/stopping_basic.json +++ b/components/ws-manager/pkg/manager/testdata/stopping_basic.json @@ -99,7 +99,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/timeout_interrupted_noActivity.json b/components/ws-manager/pkg/manager/testdata/timeout_interrupted_noActivity.json index 622560ad1c8bf1..3913d9f8a3f5b7 100644 --- a/components/ws-manager/pkg/manager/testdata/timeout_interrupted_noActivity.json +++ b/components/ws-manager/pkg/manager/testdata/timeout_interrupted_noActivity.json @@ -161,7 +161,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [ diff --git a/components/ws-manager/pkg/manager/testdata/timeout_interrupted_withActivity.json b/components/ws-manager/pkg/manager/testdata/timeout_interrupted_withActivity.json index 85982fe222d266..07fa2ac6388bc8 100644 --- a/components/ws-manager/pkg/manager/testdata/timeout_interrupted_withActivity.json +++ b/components/ws-manager/pkg/manager/testdata/timeout_interrupted_withActivity.json @@ -162,7 +162,7 @@ }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", - "imagePullPolicy": "Always", + "imagePullPolicy": "IfNotPresent", "securityContext": { "capabilities": { "add": [