mirror of https://github.com/kubernetes/kops.git
Fix GCE resource tracking
This commit is contained in:
parent
1c3512daea
commit
d34e0fd1e0
|
|
@ -1237,7 +1237,14 @@ func (d *clusterDiscoveryGCE) matchesClusterNameMultipart(name string, maxParts
|
||||||
if id == "" {
|
if id == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if name == gce.SafeObjectName(id, d.clusterName) {
|
|
||||||
|
safeName := gce.SafeObjectName(id, d.clusterName)
|
||||||
|
suffixedName, err := gce.ClusterSuffixedName(id, d.clusterName, 63)
|
||||||
|
if err != nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
if name == safeName || name == suffixedName {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue