Skip to content

Commit

Permalink
Fix stackDelete problem
Browse files Browse the repository at this point in the history
Signed-off-by: Drumil Patel <[email protected]>
  • Loading branch information
weastel committed Aug 30, 2020
1 parent b365e07 commit d0bbfe2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/provider/eks/eks.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ func (c *EKS) createStack(clusterName string) ([]string, error) {
Value: aws.String("shared"),
},
},
DisableRollback: aws.Bool(true),
}

log.Printf("Stack create request: name:'%s'", *req.StackName)
Expand Down Expand Up @@ -327,11 +328,12 @@ func (c *EKS) stackDeleted(name string) (bool, error) {
}
stackRes, err := c.clientCF.DescribeStacks(req)

if err.(awserr.Error).Code() == "ValidationError" {
return true, nil
}

if err != nil {

if err.(awserr.Error).Code() == "ValidationError" {
return true, nil
}

return false, fmt.Errorf("Couldn't get stack status: %v", err)
}

Expand Down

0 comments on commit d0bbfe2

Please sign in to comment.