kube-api
- List default templates:
$ kubectl get virtualmachinetemplateversions.harvesterhci.io -n harvester-public
GUI
- Go to Advanced -> Templates page
- Create a new template and set it as the default version
- Try to delete the default version
Expected Results
kube-api
- Default templates should exist:
NAME TEMPLATE_ID VERSION AGE
iso-image-base-version 1 39m
raw-image-base-version 1 39m
windows-iso-image-base-version 1 39m
GUI
- Creating a new template should succeed
- Deleting the default version of a template should fail with:
admission webhook “validator.harvesterhci.io” denied the request: Cannot delete the default templateVersion.