Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend the UpgradePatches mechanism to be able to remove leftovers during upgrades according to a json configuration file. Start consuming it by removing v2v-vmware and vm-import-controller-config (not owned by HCO) ConfigMap when upgrading from versions <=1.6.0 In a future PR, other pieces of current code (removal of old SSP CRDs, old metrics, old quickstarts...) can be migrated to this generic mechanism. Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=2063991 Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
- Loading branch information
1 parent
f7d4d37
commit 150630e
Showing
18 changed files
with
540 additions
and
49 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
16 changes: 16 additions & 0 deletions
16
controllers/hyperconverged/test-files/upgradePatches/badObject1.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"objectsToBeRemoved": [ | ||
{ | ||
"semverRange": "<=1.6.0", | ||
"groupVersionKind": { | ||
"group": "", | ||
"version": "v1", | ||
"kind": "" | ||
}, | ||
"objectKey": { | ||
"name": "v2v-vmware", | ||
"namespace": "kubevirt-hyperconverged" | ||
} | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
controllers/hyperconverged/test-files/upgradePatches/badObject1m.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"objectsToBeRemoved": [ | ||
{ | ||
"semverRange": "<=1.6.0", | ||
"groupVersionKind": { | ||
"group": "", | ||
"version": "v1" | ||
}, | ||
"objectKey": { | ||
"name": "v2v-vmware", | ||
"namespace": "kubevirt-hyperconverged" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.