Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: CORS-3856: Add check for asset before destroy #9386

Closed
wants to merge 1 commit into from

Conversation

rna-afk
Copy link
Contributor

@rna-afk rna-afk commented Jan 22, 2025

Adding a check to see if PlatformProvisionCheck asset exists before initiating destroy cluster. This asset is only created during create cluster phase which means the user used that command to create the cluster and hence can be cleaned with no consequences.

In the case of UPI, deleting a resource group would possibly delete other resources in the rg which might've been created by the user and could be something we shouldn't delete.

Adding a check to see if PlatformProvisionCheck asset exists
before initiating destroy cluster. This asset is only created
during create cluster phase which means the user used that command
to create the cluster and hence can be cleaned with no
consequences.

In the case of UPI, deleting a resource group would possibly
delete other resources in the rg which might've been created
by the user and could be something we shouldn't delete.
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jan 22, 2025
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 22, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Jan 22, 2025

@rna-afk: This pull request references CORS-3856 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set.

In response to this:

Adding a check to see if PlatformProvisionCheck asset exists before initiating destroy cluster. This asset is only created during create cluster phase which means the user used that command to create the cluster and hence can be cleaned with no consequences.

In the case of UPI, deleting a resource group would possibly delete other resources in the rg which might've been created by the user and could be something we shouldn't delete.

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.

@openshift-ci openshift-ci bot requested review from jhixson74 and mtulio January 22, 2025 05:47
Copy link
Contributor

openshift-ci bot commented Jan 22, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from rna-afk. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rna-afk
Copy link
Contributor Author

rna-afk commented Jan 22, 2025

/retest

Copy link
Contributor

openshift-ci bot commented Jan 23, 2025

@rna-afk: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-vsphere-host-groups-ovn-custom-no-upgrade f85cc9a link false /test e2e-vsphere-host-groups-ovn-custom-no-upgrade
ci/prow/e2e-vsphere-static-ovn f85cc9a link false /test e2e-vsphere-static-ovn
ci/prow/azure-ovn-marketplace-images f85cc9a link false /test azure-ovn-marketplace-images
ci/prow/e2e-azure-ovn f85cc9a link true /test e2e-azure-ovn
ci/prow/e2e-azure-ovn-shared-vpc f85cc9a link false /test e2e-azure-ovn-shared-vpc
ci/prow/e2e-azurestack f85cc9a link false /test e2e-azurestack
ci/prow/e2e-azure-default-config f85cc9a link false /test e2e-azure-default-config
ci/prow/e2e-azure-ovn-resourcegroup f85cc9a link false /test e2e-azure-ovn-resourcegroup

Full PR test history. Your PR dashboard.

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

@patrickdillon
Copy link
Contributor

/hold

Discussed in slack, but I think we're leaning away from this direction due to the fact that this introduces a dependency on the install config for delete

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 28, 2025
@rna-afk
Copy link
Contributor Author

rna-afk commented Feb 4, 2025

Closing this as it's no longer required

@rna-afk rna-afk closed this Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants