Skip to content

Commit

Permalink
hack: ret err when NodegroupStatusCreateFailed
Browse files Browse the repository at this point in the history
  • Loading branch information
pavansokkenagaraj committed Nov 8, 2024
1 parent f7b6089 commit 3d1709f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cloud/services/eks/nodegroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,8 @@ func (s *NodegroupService) reconcileNodegroup() error {
switch *ng.Status {
case eks.NodegroupStatusCreating, eks.NodegroupStatusUpdating:
ng, err = s.waitForNodegroupActive()
case eks.NodegroupStatusCreateFailed:
return fmt.Errorf("NodeGroup status is %s", *ng.Status)
default:
break
}
Expand Down

0 comments on commit 3d1709f

Please sign in to comment.