Added helm rollback code
This commit is contained in:
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
from flask import render_template, request, jsonify
|
||||
from forms import deploySelectForm
|
||||
from main import get_namespaces, get_charts, get_chartdata, get_tiller_namespaces
|
||||
from main import get_namespaces, get_charts, get_chartdata, get_tiller_namespaces, chartRollback
|
||||
from . import routes
|
||||
from tables import chartVersionTable
|
||||
import json
|
||||
@@ -33,5 +33,5 @@ def namespaceLookup(tiller_ns, namespace):
|
||||
|
||||
@routes.route('/deployChartRevision/<revision>/<chart>/<namespace>/<tiller_ns>', methods=['POST'])
|
||||
def deployChartRevision(revision, chart, namespace, tiller_ns):
|
||||
charts = get_charts(tiller_ns, namespace)
|
||||
return jsonify(charts)
|
||||
rollback = chartRollback(revision, chart, tiller_ns)
|
||||
return rollback
|
||||
|
||||
Reference in New Issue
Block a user