-
Story
-
Resolution: Done
-
Minor
-
None
-
None
-
3
-
False
-
None
-
False
-
-
-
AppSvc Sprint 234, AppSvc Sprint 235
Owner: Architect:
Francesco Ilario
Story (Required)
As a Primaza developer, I would like Primaza to remove all its resources from application namespaces when they are removed from its control so that the namespace can be correctly cleaned up
Background (Required)
When a Cluster Environment is deleted, Primaza's resources should be removed from application namespaces.
This also applies when the namespace is removed from the Cluster Environment's application namespace list.
See epic for arch document link.
Glossary
See glossary in architecture document
Out of scope
- Service Claim Update is out of scope
In Scope
- Deletion of Primaza resources from application namespaces
Approach(Required)
An easy approach is to set the Agent's deployment as owner with cascading deletion of all Primaza resources.
This can be done in agent reconcilers for the resources that are pushed to application namespaces:
- Service Bindings
- Service Catalog
Demo requirements(Required)
NA
Dependencies
NA
Edge Case
NA
BDD Tests
You can find BDD Test specification for this story in the "Testing Instruction" Field Tab or in the GitHub Issue linked to this story.
Click here for all BDD Tests Issues.
Acceptance Criteria
- Development
Service Binding and Secret are deleted from application namespace when namespace is deleted from Cluster Environment application namespaces list
Service Binding and Secret are deleted from application namespaces on Cluster Environment deletion
Service Catalog is deleted from application namespace when namespace is deleted from Cluster Environment application namespaces list
Service Catalog is deleted from application namespaces on Cluster Environment deletion
- QE
There are test cases for Service Binding and Secret deletion on removal of namespace from Cluster Environment application namespaces list
There are test cases for Service Binding and Secret deletion from Cluster Environment's application namespaces on Cluster Environment deletion
There are test cases for Service Catalog deletion on removal of namespace from Cluster Environment application namespaces list
There are test cases for Service Catalog deletion from Cluster Environment's application namespaces on Cluster Environment deletion
- Docs
There is a Section in the Cluster Environment docs dedicated to explaining Application namespaces cleanup
Update architecture document with any changes while implementing
INVEST Checklist
Dependencies identified
Blockers noted and expected delivery timelines set
Design is implementable
Acceptance criteria agreed upon
Story estimated
Legend
Unknown
Verified
Unsatisfied
- is documented by
-
APPSVC-1312 Add Documentation for reconciling namespaces
- Closed
- relates to
-
APPSVC-1323 On App Agent deletion, CRs with finalizers are not removed
- Closed
-
APPSVC-1308 Cleanup service namespace
- Closed