diff --git a/routes/kube_helm_routes.py b/routes/kube_helm_routes.py index 86147ac..54dc44a 100644 --- a/routes/kube_helm_routes.py +++ b/routes/kube_helm_routes.py @@ -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'] diff --git a/tables.py b/tables.py index 85bb003..8b11938 100644 --- a/tables.py +++ b/tables.py @@ -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"}) \ No newline at end of file