feat: add 'imagePullPolicy' parameter for 'goctl kube deploy' (#1996)

This commit is contained in:
swliao425
2022-06-11 09:49:14 +08:00
committed by GitHub
parent f2caf9237a
commit 0f5d8c6be3
3 changed files with 57 additions and 52 deletions

View File

@@ -20,7 +20,8 @@ spec:
containers:
- name: {{.Name}}
image: {{.Image}}
lifecycle:
{{if .ImagePullPolicy}}imagePullPolicy: {{.ImagePullPolicy}}
{{end}}lifecycle:
preStop:
exec:
command: ["sh","-c","sleep 5"]