mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
move ProvideID indexed methods to right location
This commit is contained in:
parent
b4c71b1f26
commit
655dfd1196
@ -17,7 +17,6 @@ limitations under the License.
|
|||||||
package gce
|
package gce
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"regexp"
|
"regexp"
|
||||||
@ -30,7 +29,6 @@ import (
|
|||||||
|
|
||||||
"k8s.io/apimachinery/pkg/util/wait"
|
"k8s.io/apimachinery/pkg/util/wait"
|
||||||
"k8s.io/client-go/util/flowcontrol"
|
"k8s.io/client-go/util/flowcontrol"
|
||||||
"k8s.io/kubernetes/pkg/api/v1"
|
|
||||||
"k8s.io/kubernetes/pkg/cloudprovider"
|
"k8s.io/kubernetes/pkg/cloudprovider"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
@ -342,17 +340,3 @@ func getZonesForRegion(svc *compute.Service, projectID, region string) ([]string
|
|||||||
}
|
}
|
||||||
return zones, nil
|
return zones, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NodeAddressesByProviderID returns the node addresses of an instances with the specified unique providerID
|
|
||||||
// This method will not be called from the node that is requesting this ID. i.e. metadata service
|
|
||||||
// and other local methods cannot be used here
|
|
||||||
func (gce *GCECloud) NodeAddressesByProviderID(providerID string) ([]v1.NodeAddress, error) {
|
|
||||||
return []v1.NodeAddress{}, errors.New("unimplemented")
|
|
||||||
}
|
|
||||||
|
|
||||||
// InstanceTypeByProviderID returns the cloudprovider instance type of the node with the specified unique providerID
|
|
||||||
// This method will not be called from the node that is requesting this ID. i.e. metadata service
|
|
||||||
// and other local methods cannot be used here
|
|
||||||
func (gce *GCECloud) InstanceTypeByProviderID(providerID string) (string, error) {
|
|
||||||
return "", errors.New("unimplemented")
|
|
||||||
}
|
|
||||||
|
@ -17,6 +17,7 @@ limitations under the License.
|
|||||||
package gce
|
package gce
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
@ -349,3 +350,17 @@ func (gce *GCECloud) isCurrentInstance(instanceID string) bool {
|
|||||||
|
|
||||||
return currentInstanceID == canonicalizeInstanceName(instanceID)
|
return currentInstanceID == canonicalizeInstanceName(instanceID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NodeAddressesByProviderID returns the node addresses of an instances with the specified unique providerID
|
||||||
|
// This method will not be called from the node that is requesting this ID. i.e. metadata service
|
||||||
|
// and other local methods cannot be used here
|
||||||
|
func (gce *GCECloud) NodeAddressesByProviderID(providerID string) ([]v1.NodeAddress, error) {
|
||||||
|
return []v1.NodeAddress{}, errors.New("unimplemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
// InstanceTypeByProviderID returns the cloudprovider instance type of the node with the specified unique providerID
|
||||||
|
// This method will not be called from the node that is requesting this ID. i.e. metadata service
|
||||||
|
// and other local methods cannot be used here
|
||||||
|
func (gce *GCECloud) InstanceTypeByProviderID(providerID string) (string, error) {
|
||||||
|
return "", errors.New("unimplemented")
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user