mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
cloudprovider: gce InstanceID implementation
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user