Prevent resource deletion in Live Lab
The tempest utility that is configured here will take a snapshot. After the snapashot and test run it will delete any resources that are not in the snapshot. If a tenant creates a resource outside of the test run it will also be deleted. This is something which is not desirable in a live lab. This patch aims to provide control to the end-user to define how to perform the final cleanup. Change-Id: I1f7eb3ac5e9f9be08cb05a70bb1fb2d0f4b41382
This commit is contained in:
parent
1985da999e
commit
3836899a26
@ -18,12 +18,16 @@ limitations under the License.
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
{{ if .Values.conf.cleanup.enabled }}
|
||||||
tempest cleanup --init-saved-state
|
tempest cleanup --init-saved-state
|
||||||
|
|
||||||
if [ "true" == "{{- .Values.conf.cleanup.force -}}" ]; then
|
if [ "true" == "{{- .Values.conf.cleanup.force -}}" ]; then
|
||||||
trap "tempest cleanup; exit" 1 ERR
|
trap "tempest cleanup; exit" 1 ERR
|
||||||
fi
|
fi
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{ .Values.conf.script }}
|
{{ .Values.conf.script }}
|
||||||
|
|
||||||
|
{{ if .Values.conf.cleanup.enabled }}
|
||||||
tempest cleanup
|
tempest cleanup
|
||||||
|
{{- end }}
|
||||||
|
@ -200,6 +200,7 @@ conf:
|
|||||||
api_v3: True
|
api_v3: True
|
||||||
cleanup:
|
cleanup:
|
||||||
force: false
|
force: false
|
||||||
|
enabled: true
|
||||||
|
|
||||||
pvc:
|
pvc:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
Loading…
Reference in New Issue
Block a user