Fix namespace lookup code

This commit is contained in:
Jonathan Ervine
2020-12-16 12:29:07 +08:00
parent 665afb5183
commit b59e2d73a2
3 changed files with 8 additions and 10 deletions
+3 -3
View File
@@ -25,9 +25,9 @@ def chartVersions():
return render_template('chartRevisionList.html', table=table)
@routes.route('/nsLookup/<tiller_ns>/<namespace>')
def namespaceLookup(tiller_ns, namespace):
charts = get_charts(tiller_ns, namespace)
@routes.route('/nsLookup/<ns>')
def namespaceLookup(ns):
charts = get_charts(ns)
return jsonify(charts)
@routes.route('/deployChartRevision/<revision>/<chart>/<tiller_ns>', methods=['POST'])