From a9758b2b15d02feffb94d5359ec0c8cc796baa75 Mon Sep 17 00:00:00 2001 From: Pengfei Ni Date: Wed, 27 Feb 2019 22:51:30 +0800 Subject: [PATCH] Add GetInstanceID interface for cloudprovider --- cluster-autoscaler/cloudprovider/cloud_provider.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cluster-autoscaler/cloudprovider/cloud_provider.go b/cluster-autoscaler/cloudprovider/cloud_provider.go index 8eb252efe31d..0187c2178b14 100644 --- a/cluster-autoscaler/cloudprovider/cloud_provider.go +++ b/cluster-autoscaler/cloudprovider/cloud_provider.go @@ -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