mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Fixing spaces issue found with tests. Had some missing parameters for some functions.
This commit is contained in:
parent
068e1642f6
commit
5acf24db79
@ -93,12 +93,13 @@ def request_server_certificates(tls, website):
|
|||||||
tls.request_server_cert(common_name, sans, certificate_name)
|
tls.request_server_cert(common_name, sans, certificate_name)
|
||||||
|
|
||||||
|
|
||||||
@when('config.changed.extra_sans', 'certificates.available')
|
@when('config.changed.extra_sans', 'certificates.available',
|
||||||
def update_certificate(tls):
|
'website.available')
|
||||||
|
def update_certificate(tls, website):
|
||||||
# Using the config.changed.extra_sans flag to catch changes.
|
# Using the config.changed.extra_sans flag to catch changes.
|
||||||
# IP changes will take ~5 minutes or so to propagate, but
|
# IP changes will take ~5 minutes or so to propagate, but
|
||||||
# it will update.
|
# it will update.
|
||||||
request_server_certificates(tls)
|
request_server_certificates(tls, website)
|
||||||
|
|
||||||
|
|
||||||
@when('certificates.server.cert.available',
|
@when('certificates.server.cert.available',
|
||||||
|
@ -609,12 +609,13 @@ def send_data(tls, kube_api_endpoint):
|
|||||||
tls.request_server_cert(common_name, sans, certificate_name)
|
tls.request_server_cert(common_name, sans, certificate_name)
|
||||||
|
|
||||||
|
|
||||||
@when('config.changed.extra_sans', 'certificates.available')
|
@when('config.changed.extra_sans', 'certificates.available',
|
||||||
def update_certificate(tls):
|
'kube-api-endpoint.available')
|
||||||
|
def update_certificate(tls, kube_api_endpoint):
|
||||||
# Using the config.changed.extra_sans flag to catch changes.
|
# Using the config.changed.extra_sans flag to catch changes.
|
||||||
# IP changes will take ~5 minutes or so to propagate, but
|
# IP changes will take ~5 minutes or so to propagate, but
|
||||||
# it will update.
|
# it will update.
|
||||||
send_data(tls)
|
send_data(tls, kube_api_endpoint)
|
||||||
|
|
||||||
|
|
||||||
@when('certificates.server.cert.available',
|
@when('certificates.server.cert.available',
|
||||||
|
Loading…
Reference in New Issue
Block a user