mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Lowecasing the hostname on the known nodes entry
This commit is contained in:
parent
99a25fed19
commit
a6ee55c4a7
@ -844,14 +844,14 @@ def request_kubelet_and_proxy_credentials(kube_control):
|
||||
# The kube-cotrol interface is created to support RBAC.
|
||||
# At this point we might as well do the right thing and return the hostname
|
||||
# even if it will only be used when we enable RBAC
|
||||
nodeuser = 'system:node:{}'.format(gethostname())
|
||||
nodeuser = 'system:node:{}'.format(gethostname().lower())
|
||||
kube_control.set_auth_request(nodeuser)
|
||||
|
||||
|
||||
@when('kube-control.connected')
|
||||
def catch_change_in_creds(kube_control):
|
||||
"""Request a service restart in case credential updates were detected."""
|
||||
nodeuser = 'system:node:{}'.format(gethostname())
|
||||
nodeuser = 'system:node:{}'.format(gethostname().lower())
|
||||
creds = kube_control.get_auth_credentials(nodeuser)
|
||||
if creds \
|
||||
and data_changed('kube-control.creds', creds) \
|
||||
|
Loading…
Reference in New Issue
Block a user