OCPBUGS-62307: Remove orphaned console-conversion-webhook deployment and related resource#1053
Conversation
|
@jhadvig: This pull request references Jira Issue OCPBUGS-62307, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/jira refresh |
|
@jhadvig: This pull request references Jira Issue OCPBUGS-62307, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@jhadvig: This pull request references Jira Issue OCPBUGS-62307, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/retest |
1 similar comment
|
/retest |
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
Upgrade 4.16 cluster with path: 4.16->4.17->4.18->4.19->4.20->4.22 image from pr1053, the console-conversion-webhook deployment and related resources still exist. |
5d76137 to
9a25489
Compare
…and related resource
9a25489 to
d234957
Compare
|
@jhadvig: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
TheRealJon
left a comment
There was a problem hiding this comment.
I just had a couple of optimization questions, but it seems like a solid fix.
/lgtm
|
|
||
| return factory.New(). | ||
| WithSync(c.Sync). | ||
| WithPostStartHooks(c.runCleanupOnce). |
There was a problem hiding this comment.
Is there any advantage of runCleanupOnce? It seems like the end result would be the same if we just removed it.
| controllerContext.EventRecorder, | ||
| ) | ||
|
|
||
| migrationCleanupController := migration.NewMigrationCleanupController( |
There was a problem hiding this comment.
Do we need the full overhead of a controller here? If it’s a one-and-done action at startup, a simple init function might be cleaner than a permanent sync loop.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jhadvig, TheRealJon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Upgraded 4.16 cluster with path: 4.16->4.17->4.18->4.19->4.20->4.22 image from pr1053, the console-conversion-webhook deployment and related resources were removed successfully. after upgrade to 4.22 image: /verified by yanpzhan |
|
@yanpzhan: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@jhadvig: Jira Issue Verification Checks: Jira Issue OCPBUGS-62307 Jira Issue OCPBUGS-62307 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Problem
The
console-conversion-webhookdeployment was shipped in OCP 4.16 as part of the console-operator manifests but was removed in 4.17. After upgrading from 4.16 → 4.17, the deployment and its related resources (service, secret) remain on the cluster as orphaned resources.Solution
Adds a new
MigrationCleanupControllerthat runs at operator startup to clean up the orphaned resources:console-conversion-webhookwebhookwebhook-serving-certImplementation Details
pkg/console/starter/starter.goFiles Changed
pkg/console/controllers/migration/cleanup_controller.go- New migration cleanup controllerpkg/console/starter/starter.go- Integration into startup sequenceThis ensures clean upgrades from 4.16 → 4.17 without leaving orphaned resources on the cluster.
/assign @TheRealJon