Fix test failure - only set port if it's explicitly provided.
@@ -246,7 +246,10 @@ class KubernetesDriverMixin(object):
self.connection.connection.ca_cert = False
self.connection.host = host
+
+ if port is not None:
self.connection.port = port
+
self.connection.secure = secure
if self.connectionCls == KubernetesBasicAuthConnection:
