Skip to content

Commit

Permalink
[ws-manager] Pull images if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
csweichel committed Jul 15, 2021
1 parent 63108b7 commit e8d1855
Show file tree
Hide file tree
Showing 45 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion components/ws-manager/pkg/manager/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"failureThreshold": 600
},
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"failureThreshold": 600
},
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
"failureThreshold": 600
},
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"failureThreshold": 600
},
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
}
],
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"failureThreshold": 600
},
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"failureThreshold": 600
},
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"failureThreshold": 600
},
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"failureThreshold": 600
},
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
"failureThreshold": 600
},
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"failureThreshold": 600
},
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"failureThreshold": 600
},
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"failureThreshold": 600
},
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
"failureThreshold": 600
},
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
}
],
"image": "eu.gcr.io/gitpod-dev/workspace-images:a4d95e78185ee17b09e21a79939393f4eec08d6c247c1b52696172db0a6349f7",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"name": "workspace",
"ports": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"capabilities": {
"add": [
Expand Down
Loading

0 comments on commit e8d1855

Please sign in to comment.