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
|
return data
|
||||||
|
|
||||||
def get_charts(tiller_ns, namespace):
|
def get_charts(tiller_ns, namespace):
|
||||||
command = "/usr/bin/helm --tiller-namespace " + tiller_ns + " list -ojson" #helm2
|
command = "/usr/local/bin/helm --tiller-namespace " + tiller_ns + " list -ojson" #helm2
|
||||||
#command = "/usr/bin/helm -n " + namespace + " list -ojson" #helm3
|
#command = "/usr/local/bin/helm -n " + namespace + " 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")
|
||||||
@ -66,8 +66,8 @@ def get_charts(tiller_ns, namespace):
|
|||||||
return data
|
return data
|
||||||
|
|
||||||
def get_chartdata(tiller_ns, namespace, chart):
|
def get_chartdata(tiller_ns, namespace, chart):
|
||||||
command = "/usr/bin/helm --tiller-namespace " + tiller_ns + " history " + chart + " -ojson" #helm2
|
command = "/usr/local/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 -n " + namespace + " history " + chart + " -ojson" #helm3
|
||||||
info(f"Running command: {command}")
|
info(f"Running command: {command}")
|
||||||
print(f"Running command: {command}")
|
print(f"Running command: {command}")
|
||||||
try:
|
try:
|
||||||
|
|||||||
@ -44,12 +44,11 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
dd
|
|
||||||
</p>
|
</p>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var tillerSelect = document.getElementById(tiller_ns");
|
var tillerSelect = document.getElementById("tiller_ns");
|
||||||
var namespaceSelect = document.getElementById("namespace");
|
var namespaceSelect = document.getElementById("namespace");
|
||||||
var chartSelect = document.getElementById("chart");
|
var chartSelect = document.getElementById("chart");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user