forked from intel/pmem-csi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pmem-csi-operator: delete obsolete objects of a deployment
Different operator releases might result in obsolete sub-resources that were created for a deployment. Operator shall detect these obsolete objects if any and delete them in the reconcile loop. There is no direct API to detect all the objects owned by an object. So, we keep hard-coded list of all types that operator could deal and we use this list to query and fetch the pre-deployed objects and check if that object is owned by the deployment. For tesing this pperator creates an additional dummy ConfigMap object for pre-known test version. The test ensures that the ConfigMap gets deleted upon change in the operator version. FIXES intel#595
- Loading branch information
Showing
5 changed files
with
203 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters