Fixed helm location

This commit is contained in:
jenkins-x-bot 2020-09-14 12:34:46 +08:00
parent 526a2962c8
commit 7e98a6023f
2 changed files with 5 additions and 6 deletions

View File

@ -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:

View File

@ -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");