From d0556dc92f0769fa297b18cc07bcf1c9d7517489 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Tue, 14 Dec 2021 08:24:18 +0000 Subject: [PATCH] Cleaned up pre-flight checks Signed-off-by: Marcus Noble --- home/.bin/gs-create-cluster | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.bin/gs-create-cluster b/home/.bin/gs-create-cluster index 9853c93..6e41d33 100755 --- a/home/.bin/gs-create-cluster +++ b/home/.bin/gs-create-cluster @@ -61,7 +61,7 @@ if [ $? -eq 0 ]; then exit 1 else echo "Cleaning up any old awsclusterroleidentities..." - kubectl get --namespace ${PREFIXED_NAMESPACE} awsclusterroleidentities ${NAME} >/dev/null && kubectl delete --namespace ${PREFIXED_NAMESPACE} awsclusterroleidentities ${NAME} + kubectl delete --namespace ${PREFIXED_NAMESPACE} awsclusterroleidentities ${NAME} 2>/dev/null fi echo "✨ Creating an ${PROVIDER} cluster called '${NAMESPACE}/${NAME}' with release '${RELEASE}'"