The statefile and provisioners will happily create any resources referenced by the Score spec, however, these resources are not cleaned up if they are no longer referenced!
We need to add support for:
- After
generate log a warning message indicating any resources in the statefile that are no longer used in the workload.
- Indicate these "left over" resources in the
score-k8s resources list table.
- Support a
deprovision subcommand which calls the provisioner with the DELETE action and waits for the provisioner to return before removing it from the state file.
There is a similar issue open in score-compose.
The statefile and provisioners will happily create any resources referenced by the Score spec, however, these resources are not cleaned up if they are no longer referenced!
We need to add support for:
generatelog a warning message indicating any resources in the statefile that are no longer used in the workload.score-k8s resources listtable.deprovisionsubcommand which calls the provisioner with theDELETEaction and waits for the provisioner to return before removing it from the state file.There is a similar issue open in score-compose.