Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transfer any master proxy related envs that the remoting jar uses to … #321

Merged

Conversation

gabemontero
Copy link
Contributor

…the pod templates

hey @carlossg - this PR as much is intending to initiate discussion; @bparees and I have had a recent customer situation where they are leverage jenkins on openshift with http_proxy and no_proxy employed

one of the customer's complaints was why could he not set the env's the remoting jar was looking for on the master and then have them propagated by default to each of his pod templates

as I mentioned in the TODO I can certainly add some level of on/off configuration switch if desired (preserving default behavior, etc.) but wanted to get some form of general consensus before investing addition time

thanks

@carlossg
Copy link
Contributor

carlossg commented May 9, 2018

Thanks!
I see a problem when the jenkins master runs outside kubernetes, so I think this should be opt-in in some way

@gabemontero
Copy link
Contributor Author

Roger that @carlossg

Would you prefer the config checkbox be in the "advanced" section, or are you fine with it being a peer with the other config settings?

@gabemontero
Copy link
Contributor Author

Also, as an fyi, I briefly toyed with tweaking org.csanchez.jenkins.plugins.kubernetes.pipeline.PodTemplateStepExecution to propagate the env vars for users of this plugin's pipeline DSL, but sided on being conservative, and left it alone.

But of course let me know if you would like an update there as well.

@gabemontero gabemontero force-pushed the seed_master_proxy_envs_to_agents branch from ed49357 to acb679c Compare May 9, 2018 17:19
@gabemontero
Copy link
Contributor Author

opt-in addition pushed

@gabemontero
Copy link
Contributor Author

bump @carlossg

@carlossg carlossg merged commit 57321be into jenkinsci:master May 23, 2018
@gabemontero gabemontero deleted the seed_master_proxy_envs_to_agents branch May 23, 2018 13:41
@sxcoll2
Copy link

sxcoll2 commented Mar 31, 2019

I have a Jenkins running outside of k8s and if I have a no_proxy set in my docker jnlp image and whether I opt-in or opt-out of this setting, I can't set a no_proxy environment variable neither via global variables in Jenkins nor setting env vars for the pod template, nor in the job itself. The job running 'env' never shows a no_proxy env var set. Though a no_proxy setting in the pod template does affect the starting of the jnlp container, (you can see it in container) but doesn't show up being set in the job. Other env vars I have set like NO_PROXY show up fine. Just no_proxy isn't set.

Plugin version 1.14.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants