-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Cluster-autoscaler: add get nodes function to cloud provider interface #2241
Cluster-autoscaler: add get nodes function to cloud provider interface #2241
Conversation
| if len(groups.AutoScalingGroups) < 1 { | ||
| return nil, fmt.Errorf("Unable to get first autoscaling.Group for %s", name) | ||
| } | ||
| return groups.AutoScalingGroups[0], nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return *groups.AutoScalingGroups[0], nil? based on this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it compiles without *.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, cause you don't need to deference pointers to access their fields in Go. 👍
| return groups.AutoScalingGroups[0], nil | ||
| } | ||
|
|
||
| // GetMigNodes returns Asg nodes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/GetMigNodes/GetAsgNodes/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
LGTM (after resolving comments) |
|
Automatic merge from submit-queue |
…getnodes Automatic merge from submit-queue Cluster-autoscaler: add get nodes function to cloud provider interface This is needed to compare the list of nodes created by the cloud provider with the list of nodes registered in Kubernetes. Ref: #2228 #2229 cc: @jszczepkowski @andrewsykim @piosz @fgrzadkowski
…getnodes Automatic merge from submit-queue Cluster-autoscaler: add get nodes function to cloud provider interface This is needed to compare the list of nodes created by the cloud provider with the list of nodes registered in Kubernetes. Ref: #2228 #2229 cc: @jszczepkowski @andrewsykim @piosz @fgrzadkowski
This is needed to compare the list of nodes created by the cloud provider with the list of nodes registered in Kubernetes.
Ref: #2228 #2229
cc: @jszczepkowski @andrewsykim @piosz @fgrzadkowski