mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #59920 from juju-solutions/bug/cleancredreq
Automatic merge from submit-queue (batch tested with PRs 57136, 59920). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Clean-up not needed method in juju charms **What this PR does / why we need it**: Improve code quality. Remove code that is not offeringany functionality. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
commit
9586cd06c2
@ -944,15 +944,6 @@ def notify_master_gpu_not_enabled(kube_control):
|
||||
kube_control.set_gpu(False)
|
||||
|
||||
|
||||
@when('kube-control.connected')
|
||||
@when('config.changed.kubelet-extra-args')
|
||||
def maybe_request_new_credentials(kube_control):
|
||||
kubelet_extra_args = parse_extra_args('kubelet-extra-args')
|
||||
cloud_provider = kubelet_extra_args.get('cloud-provider', '')
|
||||
if data_changed('cloud_provider', cloud_provider):
|
||||
request_kubelet_and_proxy_credentials(kube_control)
|
||||
|
||||
|
||||
@when('kube-control.connected')
|
||||
def request_kubelet_and_proxy_credentials(kube_control):
|
||||
""" Request kubelet node authorization with a well formed kubelet user.
|
||||
|
Loading…
Reference in New Issue
Block a user