Merge pull request #1244 from coreos-inc/enableaci
Add UI to the setup tool for enabling ACI conversion
This commit is contained in:
commit
11af123ba5
11 changed files with 106 additions and 18 deletions
|
@ -207,6 +207,7 @@ def render_page_template(name, route_data=None, **kwargs):
|
|||
sentry_public_dsn=app.config.get('SENTRY_PUBLIC_DSN', ''),
|
||||
is_debug=str(app.config.get('DEBUGGING', False)).lower(),
|
||||
show_chat=features.OLARK_CHAT,
|
||||
aci_conversion=features.ACI_CONVERSION,
|
||||
has_billing=features.BILLING,
|
||||
contact_href=contact_href,
|
||||
hostname=app.config['SERVER_HOSTNAME'],
|
||||
|
|
|
@ -351,6 +351,7 @@ def os_arch_checker(os, arch):
|
|||
return checker
|
||||
|
||||
|
||||
@route_show_if(features.ACI_CONVERSION)
|
||||
@anon_protect
|
||||
@verbs.route('/aci/<server>/<namespace>/<repository>/<tag>/sig/<os>/<arch>/', methods=['GET'])
|
||||
@verbs.route('/aci/<server>/<namespace>/<repository>/<tag>/aci.asc/<os>/<arch>/', methods=['GET'])
|
||||
|
@ -360,6 +361,7 @@ def get_aci_signature(server, namespace, repository, tag, os, arch):
|
|||
os=os, arch=arch)
|
||||
|
||||
|
||||
@route_show_if(features.ACI_CONVERSION)
|
||||
@anon_protect
|
||||
@verbs.route('/aci/<server>/<namespace>/<repository>/<tag>/aci/<os>/<arch>/', methods=['GET', 'HEAD'])
|
||||
@process_auth
|
||||
|
|
|
@ -99,6 +99,7 @@ def snapshot(path = ''):
|
|||
abort(404)
|
||||
|
||||
|
||||
@route_show_if(features.ACI_CONVERSION)
|
||||
@web.route('/aci-signing-key')
|
||||
@no_cache
|
||||
@anon_protect
|
||||
|
|
Reference in a new issue