Teardown benchmark resources in reverse order
Say our benchmark looks as follows:
sut:
resources:
- configMap:
name: "sut-configmap-1"
files:
- "sut-file-1.yaml"
- "sut-file-2.yaml"
- configMap:
name: "sut-configmap-2"
files:
- "sut-file-3.yaml"
loadGenerator:
resources:
- configMap:
name: "load-generator-configmap"
files:
- "load-generator-file-1.yaml"
- "load-generator-file-2.yaml"
The Kubernetes resources should be deployed in the following order:
sut-file-1.yamlsut-file-2.yamlsut-file-3.yamlload-generator-file-1.yamlload-generator-file-2.yaml
After an SLO experiment, the resources should removed in the following order:
load-generator-file-2.yamlload-generator-file-1.yamlsut-file-3.yamlsut-file-2.yamlsut-file-1.yaml
The order should also be persevered (or rather reversed) when not having the files property set.
Extensive testing is required.
Edited by Sören Henning