Skip to content

Commit

Permalink
Add GetInstanceID interface for cloudprovider
Browse files Browse the repository at this point in the history
  • Loading branch information
feiskyer committed Feb 27, 2019
1 parent 8944afd commit a9758b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cluster-autoscaler/cloudprovider/cloud_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ type CloudProvider interface {
// GetResourceLimiter returns struct containing limits (max, min) for resources (cores, memory etc.).
GetResourceLimiter() (*ResourceLimiter, error)

// GetInstanceID gets the instance ID for the specified node.
GetInstanceID(node *apiv1.Node) string

// Cleanup cleans up open resources before the cloud provider is destroyed, i.e. go routines etc.
Cleanup() error

Expand Down

0 comments on commit a9758b2

Please sign in to comment.