Skip to content

Commit

Permalink
only handle creating instance
Browse files Browse the repository at this point in the history
  • Loading branch information
daimaxiaxie committed Aug 3, 2024
1 parent 60702fb commit e08137b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster-autoscaler/clusterstate/clusterstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ func buildFakeNodeReason(instance cloudprovider.Instance) string {
return cloudprovider.FakeNodeUnregistered
}

if instance.Status.ErrorInfo != nil {
if instance.Status.State == cloudprovider.InstanceCreating && instance.Status.ErrorInfo != nil {
return cloudprovider.FakeNodeCreateError
}
return cloudprovider.FakeNodeUnregistered
Expand Down

0 comments on commit e08137b

Please sign in to comment.