Skip to content

Commit

Permalink
Prevents partial data bugs in the future by returning nil on errors
Browse files Browse the repository at this point in the history
Signed-off-by: Willi Carlsen <[email protected]>
  • Loading branch information
wcarlsen committed Jun 13, 2024
1 parent 74a5500 commit e27ae68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster-autoscaler/cloudprovider/aws/aws_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (m *awsWrapper) getManagedNodegroupInfo(nodegroupName string, clusterName s
if taint != nil && taint.Effect != nil && taint.Key != nil && taint.Value != nil {
formattedEffect, err := taintEksTranslator(taint)
if err != nil {
return nil, labels, tags, err
return nil, nil, nil, err
}
taints = append(taints, apiv1.Taint{
Key: *taint.Key,
Expand Down

0 comments on commit e27ae68

Please sign in to comment.