Skip to content

Commit e941a62

Browse files
committed
OCPBUGS-32591: GCP Destroy target pools fix misleading log
** Alter the log when destroying target pools. When the target pool is found but is not part of the cluster it was logging as an issue. It was a bit misleading, so the log is changed to explain that the resource wont be deleted because it is not part of the cluster.
1 parent 906d5d1 commit e941a62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/destroy/gcp/cloudcontroller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (o *ClusterUninstaller) listCloudControllerTargetPools(ctx context.Context,
6060
}
6161

6262
if !foundClusterResource {
63-
o.Logger.Debugf("Invalid instance %s in target pool %s, target pool will not be destroyed", name, pool.Name)
63+
o.Logger.Debugf("Skipping target pool instance %s because it is not a cluster resource", pool.Name)
6464
return false
6565
}
6666
}

0 commit comments

Comments
 (0)