diff --git a/cluster-autoscaler/cloudprovider/aws/auto_scaling_groups.go b/cluster-autoscaler/cloudprovider/aws/auto_scaling_groups.go index 5362a32b2683..5f66e808dbdc 100644 --- a/cluster-autoscaler/cloudprovider/aws/auto_scaling_groups.go +++ b/cluster-autoscaler/cloudprovider/aws/auto_scaling_groups.go @@ -33,7 +33,7 @@ import ( const ( scaleToZeroSupported = true placeholderInstanceNamePrefix = "i-placeholder" - placeholderUnfulfillableStatus = "placeholder-cannot-be-fullfilled" + placeholderUnfulfillableStatus = "placeholder-cannot-be-fulfilled" ) type asgCache struct { diff --git a/cluster-autoscaler/cloudprovider/aws/auto_scaling_groups_test.go b/cluster-autoscaler/cloudprovider/aws/auto_scaling_groups_test.go index 3deff9cc5700..d28519f29c0c 100644 --- a/cluster-autoscaler/cloudprovider/aws/auto_scaling_groups_test.go +++ b/cluster-autoscaler/cloudprovider/aws/auto_scaling_groups_test.go @@ -141,7 +141,7 @@ func TestCreatePlaceholders(t *testing.T) { ec2I: nil, }, registeredAsgs: map[AwsRef]*asg{ - registeredAsgRef: &asg{ + registeredAsgRef: { AwsRef: registeredAsgRef, lastUpdateTime: tc.groupLastUpdateTime, }, diff --git a/cluster-autoscaler/cloudprovider/aws/aws_manager.go b/cluster-autoscaler/cloudprovider/aws/aws_manager.go index 3865f3ff5249..63a4a4395eb7 100644 --- a/cluster-autoscaler/cloudprovider/aws/aws_manager.go +++ b/cluster-autoscaler/cloudprovider/aws/aws_manager.go @@ -301,6 +301,7 @@ func (m *AwsManager) GetAsgNodes(ref AwsRef) ([]AwsInstanceRef, error) { return m.asgCache.InstancesByAsg(ref) } +// GetInstanceStatus returns the status of ASG nodes func (m *AwsManager) GetInstanceStatus(ref AwsInstanceRef) (*string, error) { return m.asgCache.InstanceStatus(ref) }