Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cloud
charms
kubernetes-keystone
Commits
d8e99672
Commit
d8e99672
authored
Jul 14, 2018
by
Giuseppe Attardi
Browse files
Fix auth-mode
parent
b66d55f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
.build.manifest
View file @
d8e99672
This source diff could not be displayed because it is too large. You can
view the blob
instead.
reactive/kubernetes-keystone.py
View file @
d8e99672
...
...
@@ -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'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment