b3f8b812ca
This PS enables the following backends for glance: * PVC * RBD * RadosGW (direct) * Swift It also moves the creation of the RBD pool when required to a storage init job. This job also creates credentials as required for glance to use when accessing the required backend, rather than using the admin keyring. Change-Id: I90fead961ff73a9263826acc794128fa73ead2e1
30 lines
823 B
Smarty
30 lines
823 B
Smarty
#!/bin/bash
|
|
|
|
{{/*
|
|
Copyright 2017 The Openstack-Helm Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/}}
|
|
|
|
set -ex
|
|
{{ if .Values.bootstrap.enabled }}
|
|
{{ range .Values.bootstrap.images }}
|
|
{{ if .id -}}
|
|
openstack image show {{ .id | quote }} && \
|
|
openstack image delete {{ .id | quote }}
|
|
{{ end -}}
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
exit 0
|