-
Notifications
You must be signed in to change notification settings - Fork 16.8k
[stable/jenkins] Support Multiple Kubernetes podTemplates #20870
[stable/jenkins] Support Multiple Kubernetes podTemplates #20870
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
I'm working on changes to allow multiple agents to be defined via JCasC. See wmcdona89#2. I don't plan to provide support for xml configuration. |
Funny, seems like we've been working in the same thing wmcdona89: Your PR seems more complete. |
@lgg42 Thanks for pointing out your PR. I hadn't noticed it yesterday. I think our PRs are complimentary. Yours is pretty straightforward in allowing a user to add podTemplates to the default casc. I'm attempting to abstract away the kubernetes podTemplate casc but I'm realizing now I failed to abstract away the rest of the kubernetes casc so the user still ends up having to know many of the casc details. Perhaps I could make a change similar to yours and add an |
@wmcdona89 about
I want to correctly understand your thought. You meant that maybe there are more fields for the pod templates that your PR is not taking into account? if this is the case... let me attach a real example of a pod template we'd use (the one in my PR is a simple example)
Like that one, we have like 10, context: we're coming from JenkinsX which have by default a lot of pod templates. That's why if we want to use the stable/jenkins chart for our pipelines we need to have a set of pre-defined custom pod templates. About:
I'm also lacking a good sense on that. The default config works perfect for me. and I think JenkinsX sticks to this same default config, except they add extra the pod templates About your change proposal, I'd personally stick with adding an If you decide to go with that previous approach I'd be happy to close my PR in favor of yours. Anyway I think we can definitely find common ground here. Great work! 💪 |
Thanks for the insight! I updated my PR to use the default casc. Definitely simplified the usage. Let me know how it works for you. |
Is your feature request related to a problem? Please describe.
Currently there's no way (that I'm aware of) to create more than one k8s podTemplate (
agent.yamlTemplate
).Describe the solution you'd like
Something like:
in
tempaltes/config.yaml
:And then in
values.yaml
:Describe alternatives you've considered
None that I can think of..
Additional context
.
The text was updated successfully, but these errors were encountered: