Skip to content

Commit

Permalink
Merge pull request #2149 from yan234280533/bugfix/nogroup_crash
Browse files Browse the repository at this point in the history
nodeGroup judy IsNil to avoid crashed
  • Loading branch information
k8s-ci-robot authored Jul 23, 2019
2 parents e26ebfc + 3a633de commit 952fdfd
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 @@ -585,7 +585,7 @@ func (csr *ClusterStateRegistry) updateReadinessStats(currentTime time.Time) {
klog.Warningf("Failed to get nodegroup for %s: %v", unregistered.Node.Name, errNg)
continue
}
if nodeGroup == nil {
if nodeGroup == nil || reflect.ValueOf(nodeGroup).IsNil() {
klog.Warningf("Nodegroup is nil for %s", unregistered.Node.Name)
continue
}
Expand Down

0 comments on commit 952fdfd

Please sign in to comment.