-
Improvement
-
Resolution: Unresolved
-
Major
-
None
After introduction of direct connection option in kubernetes plugin and remoting it's now possible to avoid http(s) requests to jenkins host.
But if you want to connect agents which are tunneled, it's not possible to utilize direct connection because kubernetes plugin uses Jenkins host and port reported by TCP agent listener.
Currently there are no way to modify JENKINS_DIRECT_CONNECTION in the container using podTemplate because PodTemplateBuilder overrides any environment variables.
Proposal
Introduce one more property "Direct connection endpoint" in the cloud configuration under Direct Connection settings and allow to set it to be set to host:port string.
If this direct connection endpoint was not set, use default values from TcpSlaveAgentListener like its done now.
vlatombe can you please take a look on this issue ?