From d0bbfe20555d54b9b5f10f7551ec878cb011c253 Mon Sep 17 00:00:00 2001 From: Drumil Patel Date: Fri, 28 Aug 2020 20:11:13 +0530 Subject: [PATCH] Fix stackDelete problem Signed-off-by: Drumil Patel --- pkg/provider/eks/eks.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/provider/eks/eks.go b/pkg/provider/eks/eks.go index ed6735a78..b5e0c20d0 100644 --- a/pkg/provider/eks/eks.go +++ b/pkg/provider/eks/eks.go @@ -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) @@ -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) }