Merge "Prevent resource deletion in Live Lab"

This commit is contained in:
Zuul 2018-09-10 11:34:13 +00:00 committed by Gerrit Code Review
commit 92ba71209e
2 changed files with 5 additions and 0 deletions

View File

@ -18,12 +18,16 @@ limitations under the License.
set -ex
{{ if .Values.conf.cleanup.enabled }}
tempest cleanup --init-saved-state
if [ "true" == "{{- .Values.conf.cleanup.force -}}" ]; then
trap "tempest cleanup; exit" 1 ERR
fi
{{- end }}
{{ .Values.conf.script }}
{{ if .Values.conf.cleanup.enabled }}
tempest cleanup
{{- end }}

View File

@ -200,6 +200,7 @@ conf:
api_v3: True
cleanup:
force: false
enabled: true
pvc:
enabled: true