The k8s plugin's behavior of setting the health check probe type
scheme to https when it was http and the use_tls flag is set is
causing a problem for the Policy Handler. This change leaves the
health check type alone, so, if it was http, it stays http even if
use_tls is set.
Change-Id: If004876f5142889abe0b24aeb4c0fdedaea3ab2b
Issue-ID: DCAEGEN2-591
Signed-off-by: Andrew Gauld <ag1282@att.com>
http_get = client.V1HTTPGetAction(
path = hc['endpoint'],
port = port,
- scheme = 'HTTPS' if use_tls else probe_type.upper()
+ scheme = probe_type.upper()
)
)
elif probe_type in ['script', 'docker']:
return _execute_command_in_pod(namespace, pod_name, command)
# Execute command in the running pods
- return map(do_execute, pod_names)
\ No newline at end of file
+ return map(do_execute, pod_names)