fix to avoid crash loop on glance clean job
glance clean job tries to delete a image. but if there's no the image, the job falls in CrashLoopBackOff status when helm delete. Change-Id: I3b9c3057b9da8780ca27f1cb18dcd5541f3bcabc Closes-bug: 1708581
This commit is contained in:
parent
268d8ef471
commit
f45da069e4
@ -18,11 +18,10 @@ set -ex
|
||||
{{ if .Values.bootstrap.enabled }}
|
||||
{{ range .Values.bootstrap.images }}
|
||||
{{ if .id -}}
|
||||
echo "Delete Glance Bootstrap Image..."
|
||||
openstack image delete {{ .id }}
|
||||
openstack image show {{ .id | quote }} && \
|
||||
openstack image delete {{ .id | quote }}
|
||||
{{ end -}}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
exit 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user