mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
cloudprovider: gce InstanceID implementation
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
This commit is contained in:
parent
185d0e19d5
commit
afcda70190
@ -499,7 +499,7 @@ func (gce *GCECloud) ExternalID(instance string) (string, error) {
|
||||
|
||||
// InstanceID returns the cloud provider ID of the specified instance.
|
||||
func (gce *GCECloud) InstanceID(instance string) (string, error) {
|
||||
return "", nil
|
||||
return gce.projectID + "/" + gce.zone + "/" + canonicalizeInstanceName(instance), nil
|
||||
}
|
||||
|
||||
// List is an implementation of Instances.List.
|
||||
|
Loading…
Reference in New Issue
Block a user