Commit d8e99672 authored by Giuseppe Attardi's avatar Giuseppe Attardi
Browse files

Fix auth-mode

parent b66d55f6
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -81,9 +81,8 @@ def setup_authentication():
# CHECKME: do we need authorization-mode Webhook?
# get current value for authorization-mode
cmd = ['snap', 'get', 'kube-apiserver',
'authorization-mode']
auth_mode = check_output(cmd).decode('utf-8')
cmd = ['snap', 'get', 'kube-apiserver', 'authorization-mode']
auth_mode = check_output(cmd).decode('utf-8').strip()
if 'Webhook' not in auth_mode:
if auth_mode: auth_mode += ','
auth_mode += 'Webhook'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment