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 <davlet.panech@windriver.com> Change-Id: I07737336ecb2ccd18b8d244b57c0ab84d4ebb21c
This commit is contained in:
parent
24b59c37a5
commit
17b3c66dd2
@ -70,12 +70,6 @@ grep stx-' + dockername + ' | awk \'{print $1}\' '
|
|||||||
def helm_release_exists(projectname):
|
def helm_release_exists(projectname):
|
||||||
'''Check if the helm release exists'''
|
'''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
|
cmd = 'helm ls | grep ' + projectname
|
||||||
ret = subprocess.getoutput(cmd)
|
ret = subprocess.getoutput(cmd)
|
||||||
if ret:
|
if ret:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user