Fixed helm location
This commit is contained in:
parent
526a2962c8
commit
7e98a6023f
8
main.py
8
main.py
@ -53,8 +53,8 @@ def get_deployments(namespace):
|
||||
return data
|
||||
|
||||
def get_charts(tiller_ns, namespace):
|
||||
command = "/usr/bin/helm --tiller-namespace " + tiller_ns + " list -ojson" #helm2
|
||||
#command = "/usr/bin/helm -n " + namespace + " list -ojson" #helm3
|
||||
command = "/usr/local/bin/helm --tiller-namespace " + tiller_ns + " list -ojson" #helm2
|
||||
#command = "/usr/local/bin/helm -n " + namespace + " list -ojson" #helm3
|
||||
info(f"Running command: {command}")
|
||||
try:
|
||||
output = check_output(command.split(" "), stderr=STDOUT).decode("utf-8")
|
||||
@ -66,8 +66,8 @@ def get_charts(tiller_ns, namespace):
|
||||
return data
|
||||
|
||||
def get_chartdata(tiller_ns, namespace, chart):
|
||||
command = "/usr/bin/helm --tiller-namespace " + tiller_ns + " history " + chart + " -ojson" #helm2
|
||||
#command = "/usr/bin/helm -n " + namespace + " history " + chart + " -ojson" #helm3
|
||||
command = "/usr/local/bin/helm --tiller-namespace " + tiller_ns + " history " + chart + " -ojson" #helm2
|
||||
#command = "/usr/local/bin/helm -n " + namespace + " history " + chart + " -ojson" #helm3
|
||||
info(f"Running command: {command}")
|
||||
print(f"Running command: {command}")
|
||||
try:
|
||||
|
||||
@ -44,12 +44,11 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
dd
|
||||
</p>
|
||||
</dl>
|
||||
|
||||
<script>
|
||||
var tillerSelect = document.getElementById(tiller_ns");
|
||||
var tillerSelect = document.getElementById("tiller_ns");
|
||||
var namespaceSelect = document.getElementById("namespace");
|
||||
var chartSelect = document.getElementById("chart");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user