mirror of
https://github.com/optim-enterprises-bv/openstack-helm.git
synced 2026-01-08 16:41:39 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user