Fixing helm chart lookup
This commit is contained in:
parent
b59e2d73a2
commit
02bbf98084
2
main.py
2
main.py
@ -50,7 +50,7 @@ def get_deployments(namespace):
|
|||||||
return data
|
return data
|
||||||
|
|
||||||
def get_charts(ns):
|
def get_charts(ns):
|
||||||
command = "/usr/local/bin/helm -n " + namespace + " list -ojson" #helm3
|
command = "/usr/local/bin/helm -n " + ns + " list -ojson" #helm3
|
||||||
info(f"Running command: {command}")
|
info(f"Running command: {command}")
|
||||||
try:
|
try:
|
||||||
output = check_output(command.split(" "), stderr=STDOUT).decode("utf-8")
|
output = check_output(command.split(" "), stderr=STDOUT).decode("utf-8")
|
||||||
|
|||||||
@ -64,7 +64,7 @@
|
|||||||
if (data != 'EMPTY') {
|
if (data != 'EMPTY') {
|
||||||
var optionHTML = '';
|
var optionHTML = '';
|
||||||
for (var chart of data.Releases) {
|
for (var chart of data.Releases) {
|
||||||
optionHTML += '<option value="' + chart.Name + '">' + chart.Name + '</option>';
|
optionHTML += '<option value="' + chart.name + '">' + chart.name + '</option>';
|
||||||
}
|
}
|
||||||
chartSelect.innerHTML = optionHTML;
|
chartSelect.innerHTML = optionHTML;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user