mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
Add a resource fit scheduler predicate. Set sensible defaults.
This commit is contained in:
@@ -18,6 +18,8 @@ package cloudprovider
|
||||
|
||||
import (
|
||||
"net"
|
||||
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||
)
|
||||
|
||||
// Interface is an abstract, pluggable interface for cloud providers.
|
||||
@@ -49,6 +51,8 @@ type Instances interface {
|
||||
IPAddress(name string) (net.IP, error)
|
||||
// List lists instances that match 'filter' which is a regular expression which must match the entire instance name (fqdn)
|
||||
List(filter string) ([]string, error)
|
||||
// GetNodeResources gets the resources for a particular node
|
||||
GetNodeResources(name string) (*api.NodeResources, error)
|
||||
}
|
||||
|
||||
// Zone represents the location of a particular machine.
|
||||
|
Reference in New Issue
Block a user