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: refactor gcp destroy #9206

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

patrickdillon
Copy link
Contributor

An initial commit for larger refactoring GCP
destroy code, this encapsulates the boiler
plate destroy flow for many resources into
a reusable function.

This commit just contains the resources which
use the exact same flow. Several more resources
have very slight variations, either because
they have been updated over time or they
have been considered a special snowflake. These
should be easily adapted in a subsequent commit
but this commit keeps things simple for the
resources that require only minimal changes.

Encapsulating the boiler plate logic not only
makes the code easier to read, but makes the
code more maintainble by imposing structure:
it reduces the surface area for where
resource-specific changes can be introduced.

An initial commit for larger refactoring GCP
destroy code, this encapsulates the boiler
plate destroy flow for many resources into
a reusable function.

This commit just contains the resources which
use the exact same flow. Several more resources
have very slight variations, either because
they have been updated over time or they
have been considered a special snowflake. These
should be easily adapted in a subsequent commit
but this commit keeps things simple for the
resources that require only minimal changes.

Encapsulating the boiler plate logic not only
makes the code easier to read, but makes the
code more maintainble by imposing structure:
it reduces the surface area for where
resource-specific changes can be introduced.
@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 Nov 14, 2024
Copy link
Contributor

openshift-ci bot commented Nov 14, 2024

[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 patrickdillon. For more information see the Kubernetes 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

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 30, 2024
@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

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.

Copy link
Contributor

openshift-ci bot commented Dec 18, 2024

@patrickdillon: 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/okd-scos-e2e-aws-ovn f571490 link false /test okd-scos-e2e-aws-ovn
ci/prow/e2e-azure-ovn f571490 link true /test e2e-azure-ovn
ci/prow/artifacts-images f571490 link true /test artifacts-images
ci/prow/e2e-aws-ovn-upi f571490 link true /test e2e-aws-ovn-upi
ci/prow/e2e-gcp-ovn f571490 link true /test e2e-gcp-ovn
ci/prow/e2e-aws-ovn-edge-zones-manifest-validation f571490 link true /test e2e-aws-ovn-edge-zones-manifest-validation
ci/prow/altinfra-images f571490 link true /test altinfra-images
ci/prow/golint f571490 link true /test golint
ci/prow/e2e-vsphere-ovn-upi f571490 link true /test e2e-vsphere-ovn-upi
ci/prow/govet f571490 link true /test govet
ci/prow/e2e-gcp-ovn-upi f571490 link true /test e2e-gcp-ovn-upi
ci/prow/e2e-vsphere-ovn f571490 link true /test e2e-vsphere-ovn
ci/prow/aro-unit f571490 link true /test aro-unit
ci/prow/e2e-aws-ovn f571490 link true /test e2e-aws-ovn
ci/prow/terraform-images f571490 link true /test terraform-images
ci/prow/e2e-metal-ipi-ovn-ipv6 f571490 link true /test e2e-metal-ipi-ovn-ipv6
ci/prow/verify-vendor f571490 link true /test verify-vendor
ci/prow/e2e-agent-compact-ipv4 f571490 link true /test e2e-agent-compact-ipv4
ci/prow/okd-scos-images f571490 link true /test okd-scos-images

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants