Look for deployments rather than namespaces
This commit is contained in:
parent
aa618b3442
commit
e6648971df
2
main.py
2
main.py
@ -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")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user