Fix chart list to use helm3

This commit is contained in:
Jonathan Ervine 2020-12-16 13:45:20 +08:00
parent a8a7a19fdd
commit 92868a3307
2 changed files with 2 additions and 4 deletions

View File

@ -14,11 +14,10 @@ def index():
@routes.route('/chartSelect', methods=['POST'])
def chartVersions():
tiller_ns = request.form['tiller_ns']
chart = request.form['chart']
records = request.form['records']
namespace = 'default'
chartVersions = get_chartdata(tiller_ns, namespace, chart, records)
namespace = request.form['ns']
chartVersions = get_chartdata(namespace, chart, records)
table = chartVersionTable(chartVersions)
table.border = True
table.classes = ['table-striped', 'table-condensed', 'table-hover']

View File

@ -4,7 +4,6 @@ class chartVersionTable(Table):
revision = Col('Chart Revision')
updated = Col('Updated')
status = Col('Status')
tiller_ns = Col('Tiiler Namespace')
chart = Col('Chart Version')
description = Col('Description')
deploy = ButtonCol('Deploy', 'routes.deployChartRevision', url_kwargs=dict(revision='revision', chart='chartName', tiller_ns='tiller_ns'), button_attrs={"type" : "submit", "class" : "btn btn-danger"})