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

[JENKINS-50932] Combine parent pod template ports with children #340

Merged
merged 6 commits into from Oct 31, 2018
Merged

[JENKINS-50932] Combine parent pod template ports with children #340

merged 6 commits into from Oct 31, 2018

Conversation

juissi-t
Copy link
Contributor

@juissi-t juissi-t commented Jun 8, 2018

I wrote a test which starts up two pods with host ports in parallel, and checks that they both get host ports. Tested in a minikube cluster to successfully expose the bug.

@juissi-t juissi-t changed the title Add test for JENKINS-50932 [JENKINS-50932] Add test Jun 8, 2018
@juissi-t
Copy link
Contributor Author

I added a commit which combines the ports section of a container with the parent container to work around the issue for our use case. It does nothing to fix the underlying issue with pod inheritance, which seems to be the cause for the issue we are seeing with host ports.

@carlossg carlossg changed the title [JENKINS-50932] Add test [JENKINS-50932] Combine parent pod template ports with children Jul 31, 2018
It's expensive and already covered by PodTemplateUtilsTest#shouldCombineAllPorts
@juissi-t
Copy link
Contributor Author

The bug described in JENKINS-50932 was fixed in 1.12.7, so I'm closing this.

@juissi-t juissi-t closed this Oct 15, 2018
@carlossg carlossg reopened this Oct 17, 2018
@carlossg
Copy link
Contributor

this is still useful

@carlossg carlossg merged commit 4f4c69b into jenkinsci:master Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants