Remove kuibectl commands
This commit is contained in:
parent
317d0b1a06
commit
6b6895d62e
12
main.py
12
main.py
@ -23,18 +23,6 @@ def get_namespaces():
|
||||
ns = v1.list_namespace()
|
||||
return ns
|
||||
|
||||
def get_deployments(namespace):
|
||||
command = "/usr/local/bin/kubectl -n " + namespace + " get deploy -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_charts(ns):
|
||||
command = "/usr/local/bin/helm -n " + ns + " list -ojson" #helm3
|
||||
info(f"Running command: {command}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user