Repository navigation
OCPBUGS-42107: Allow the control plane operator to finish deleting VPC endpoint for PrivateLink clusters - #4740
Conversation
…PrivateLink clusters Before this commit, the HostedCluster controller would only preserve the status of the ValidAWSIdentityProvider condition if its value was false when the hostedcontrolplane was no longer available. This resulted in the following sequence of events: - The hosted cluster is deleted - The CAPI cluster is deleted causing the hosted control plane to be deleted - The ValidAWSIdentityProvider condition was set to Unknown because there is no longer a hosted control plane to get a value from. - The AWSEndpointService resource control-plane-operator-finalizer is removed because there is no longer a ValidAWSIdentityProvider - The control plane namespace is deleted along with the control plane operator pod in it. - The control plane operator does not get a chance to completely cleanup the VPC endpoint in the customer's account. This commit fixes the sequence by preserving the state of the ValidAWSIdentityProvider condition regardless of it being true or false. This results in the HostedCluster controller waiting for the control plane operator to cleanup and eventually remove the finalizer of the AWSEndpointService resource. It also introduces a grace period for the AWSEndpointService to be cleaned up, after which deletion proceeds as before.
|
@csrwng: This pull request references Jira Issue OCPBUGS-42107, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (jiezhao@redhat.com), skipping review request. 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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csrwng 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 |
|
/lgtm |
|
@csrwng: all tests passed! 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. |
|
@csrwng: Jira Issue OCPBUGS-42107: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-42107 has been moved to the MODIFIED state. 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. |
|
[ART PR BUILD NOTIFIER] Distgit: hypershift |
What this PR does / why we need it:
Before this commit, the HostedCluster controller would only preserve the status of the ValidAWSIdentityProvider condition if its value was false when the hostedcontrolplane was no longer available. This resulted in the following sequence of events:
This commit fixes the sequence by preserving the state of the ValidAWSIdentityProvider condition regardless of it being true or false. This results in the HostedCluster controller waiting for the control plane operator to cleanup and eventually remove the finalizer of the AWSEndpointService resource. It also introduces a grace period for the AWSEndpointService to be cleaned up, after which deletion proceeds as before.
Which issue(s) this PR fixes (optional, use
fixes #<issue_number>(, fixes #<issue_number>, ...)format, where issue_number might be a GitHub issue, or a Jira story:Fixes #OCPBUGS-42107
Checklist