From a8a7a19fddb08e5b642cc1a3682200849f90e93b Mon Sep 17 00:00:00 2001 From: Jonathan Ervine <57888439+jervine-gogo@users.noreply.github.com> Date: Wed, 16 Dec 2020 13:42:21 +0800 Subject: [PATCH] Remove tiller namespace lookup --- main.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/main.py b/main.py index 269f7a6..1d31045 100644 --- a/main.py +++ b/main.py @@ -23,18 +23,6 @@ def get_namespaces(): ns = v1.list_namespace() return ns -def get_tiller_namespaces(): - 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") - except CalledProcessError as err: - error(err.output.decode("utf-8")) - raise err - info(f"Output from command:\n{output}") - data = json.loads(output) - return data - def get_deployments(namespace): command = "/usr/local/bin/kubectl -n " + namespace + " get deploy -ojson" info(f"Running command: {command}")