mirror of https://github.com/k3s-io/k3s
Merge pull request #51196 from juju-solutions/bug/dead-code
Automatic merge from submit-queue (batch tested with PRs 47115, 51196, 51204, 51208, 51206) Removing push_api_data on kube-api.connected seems to be dead code **What this PR does / why we need it**: Removing dead code is always good :) **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: There is no kube-api relation. This method was replace probably at some point by push_service_data firing when kube-api-endpoint.available **Release note**: ``` ```pull/6/head
commit
684066c5b5
|
@ -465,15 +465,6 @@ def send_data(tls):
|
|||
tls.request_server_cert(common_name, sans, certificate_name)
|
||||
|
||||
|
||||
@when('kube-api.connected')
|
||||
def push_api_data(kube_api):
|
||||
''' Send configuration to remote consumer.'''
|
||||
# Since all relations already have the private ip address, only
|
||||
# send the port on the relation object to all consumers.
|
||||
# The kubernetes api-server uses 6443 for the default secure port.
|
||||
kube_api.set_api_port('6443')
|
||||
|
||||
|
||||
@when('kubernetes-master.components.started')
|
||||
def configure_cdk_addons():
|
||||
''' Configure CDK addons '''
|
||||
|
|
Loading…
Reference in New Issue