From 17b3c66dd255fb9d8906139dce8672cf85ca54da Mon Sep 17 00:00:00 2001 From: Davlet Panech Date: Mon, 25 Oct 2021 15:52:41 -0400 Subject: [PATCH] stx/command.py: disable helm release check "stx config add" fails if minikube cluster hasn't been initalized yet, which is normally done by running "stx-init-env" *after* editing configuration. Ie there's a chicken and egg problem. Disable the check. Story: 2008846 Task: 43755 Signed-off-by: Davlet Panech Change-Id: I07737336ecb2ccd18b8d244b57c0ab84d4ebb21c --- stx/lib/stx/command.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/stx/lib/stx/command.py b/stx/lib/stx/command.py index 7ddb88357..12bc1a8e9 100644 --- a/stx/lib/stx/command.py +++ b/stx/lib/stx/command.py @@ -70,12 +70,6 @@ grep stx-' + dockername + ' | awk \'{print $1}\' ' def helm_release_exists(projectname): '''Check if the helm release exists''' - cmd = 'helm ls > /dev/null' - ret = subprocess.call(cmd, shell=True) - if ret: - logger.error('helm command failed, please check minikube env!') - sys.exit(1) - cmd = 'helm ls | grep ' + projectname ret = subprocess.getoutput(cmd) if ret: