Look for deployments rather than namespaces

This commit is contained in:
jenkins-x-bot 2020-09-16 13:59:06 +08:00
parent aa618b3442
commit e6648971df

View File

@ -29,7 +29,7 @@ def get_namespaces():
return data
def get_tiller_namespaces():
command = "/usr/local/bin/kubectl get po --all-namespaces -l name=tiller -ojson"
command = "/usr/local/bin/kubectl get deploy --all-namespaces -l name=tiller -ojson"
info(f"Running command: {command}")
try:
output = check_output(command.split(" "), stderr=STDOUT).decode("utf-8")