-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
OCPBUGS-2135: Include CAPG objects in uninstall filter #7907
Conversation
@RadekManak: This pull request references Jira Issue OCPBUGS-2135, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In 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 |
@RadekManak: This pull request references Jira Issue OCPBUGS-2135, 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: In 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. |
pkg/destroy/gcp/gcp.go
Outdated
@@ -233,7 +233,7 @@ func (o *ClusterUninstaller) clusterIDFilter() string { | |||
} | |||
|
|||
func (o *ClusterUninstaller) clusterLabelFilter() string { | |||
return fmt.Sprintf("labels.kubernetes-io-cluster-%s = \"owned\"", o.ClusterID) | |||
return fmt.Sprintf("(labels.kubernetes-io-cluster-%s = \"owned\") OR (labels.capg-cluster-%s = \"owned\")", o.ClusterID, o.ClusterID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return fmt.Sprintf("(labels.kubernetes-io-cluster-%s = \"owned\") OR (labels.capg-cluster-%s = \"owned\")", o.ClusterID, o.ClusterID) | |
return fmt.Sprintf("(labels.kubernetes-io-cluster-%s = \"owned\") OR (labels.%s%s = \"owned\")", o.ClusterID, capg.NameGCPProviderOwned, o.ClusterID) |
ba80c54
to
a3d62c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: patrickdillon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest-required |
@RadekManak: The following tests failed, say
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/test-infra repository. I understand the commands that are listed here. |
056cd84
into
openshift:master
@RadekManak: Jira Issue OCPBUGS-2135: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-2135 has been moved to the MODIFIED state. In 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] This PR has been included in build ose-installer-altinfra-container-v4.16.0-202402020041.p0.g056cd84.assembly.stream for distgit ose-installer-altinfra. |
The GCP CAPI provider uses different label for instances than MAPI.
This PR adds the CAPG label to labels we look for when uninstalling.