cloud-platform
cloud-platform copied to clipboard
Update Cloud Platform CLI to Delete Core Layer Terraform State File
Background
During the clean up of orphaned resources, it is found that are many orphaned terraform state files at the core
layer and the number seems to be unnormal.
When checking the log in delete-cluster pipeline, those log can be found
-
Destroying components in cp-0404-1520 cluster
log -
Destroying cluster cp-0404-1520
log -
Destroying vpc
log
But Destroying core
cannot be found.
After checking, the problem should be related to the pkg/command/cluster.go - the func addDeleteClusterFlags
is missing the true flag for DestroyCore
.
Proposed user journey
Approach
Update the code and test it.
Which part of the user docs does this impact
Communicate changes
- [ ] post for #cloud-platform-update
- [ ] Weeknotes item
- [ ] Show the Thing/P&A All Hands/User CoP
- [ ] Announcements channel
Questions / Assumptions
Definition of done
- [ ] readme has been updated
- [ ] user docs have been updated
- [ ] another team member has reviewed
- [ ] smoke tests are green
- [ ] prepare demo for the team