Fix chart list to use helm3
This commit is contained in:
parent
a8a7a19fdd
commit
92868a3307
@ -14,11 +14,10 @@ def index():
|
|||||||
|
|
||||||
@routes.route('/chartSelect', methods=['POST'])
|
@routes.route('/chartSelect', methods=['POST'])
|
||||||
def chartVersions():
|
def chartVersions():
|
||||||
tiller_ns = request.form['tiller_ns']
|
|
||||||
chart = request.form['chart']
|
chart = request.form['chart']
|
||||||
records = request.form['records']
|
records = request.form['records']
|
||||||
namespace = 'default'
|
namespace = request.form['ns']
|
||||||
chartVersions = get_chartdata(tiller_ns, namespace, chart, records)
|
chartVersions = get_chartdata(namespace, chart, records)
|
||||||
table = chartVersionTable(chartVersions)
|
table = chartVersionTable(chartVersions)
|
||||||
table.border = True
|
table.border = True
|
||||||
table.classes = ['table-striped', 'table-condensed', 'table-hover']
|
table.classes = ['table-striped', 'table-condensed', 'table-hover']
|
||||||
|
|||||||
@ -4,7 +4,6 @@ class chartVersionTable(Table):
|
|||||||
revision = Col('Chart Revision')
|
revision = Col('Chart Revision')
|
||||||
updated = Col('Updated')
|
updated = Col('Updated')
|
||||||
status = Col('Status')
|
status = Col('Status')
|
||||||
tiller_ns = Col('Tiiler Namespace')
|
|
||||||
chart = Col('Chart Version')
|
chart = Col('Chart Version')
|
||||||
description = Col('Description')
|
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"})
|
deploy = ButtonCol('Deploy', 'routes.deployChartRevision', url_kwargs=dict(revision='revision', chart='chartName', tiller_ns='tiller_ns'), button_attrs={"type" : "submit", "class" : "btn btn-danger"})
|
||||||
Loading…
Reference in New Issue
Block a user