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-58405] Backward compatibility for yaml field merge #538

Merged
merged 5 commits into from
Jul 10, 2019

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Jul 9, 2019

Added a yamlMergeStrategy field to PodTemplate/PodTemplateStep in order
to control how yaml field is handled across inheritance of pod
templates. Defaults to "override" in order to be backward compatible.

Added a yamlMergeStrategy field to PodTemplate/PodTemplateStep in order
to control how yaml field is handled across inheritance of pod
templates. Defaults to "override" in order to be backward compatible.
@Vlatombe Vlatombe requested a review from jglick July 9, 2019 15:04
Defines how the raw yaml field gets merged with yaml definitions from inherited pod templates.

<ul>
<li>Override: The yaml definitions from inherited pod templates are completely overridden by the current yaml field.</li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put this documentation in help.html for each option.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still recommend this ^^^

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum... does it work with dropdownDescriptorSelector ? The only place where I've seen this pattern being used was with descriptorRadioList. I could probably pull the description for each implementation in its own config page though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure. Try config.jelly plus f:description. It is possible f:dropdownDescriptorSelector does not yet honor help.html, I do not recall.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is what I ended up doing in e01f122

Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this going to be forward-ported to master also?

Defines how the raw yaml field gets merged with yaml definitions from inherited pod templates.

<ul>
<li>Override: The yaml definitions from inherited pod templates are completely overridden by the current yaml field.</li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still recommend this ^^^

@Vlatombe Vlatombe merged commit f47aead into jenkinsci:stable-1.15 Jul 10, 2019
@Vlatombe Vlatombe deleted the JENKINS-58405 branch July 10, 2019 12:57
@Vlatombe Vlatombe added the bug Bug Fixes label Jul 10, 2019
Vlatombe added a commit to Vlatombe/kubernetes-plugin that referenced this pull request Jul 10, 2019
[JENKINS-58405] Backward compatibility for yaml field merge
@jglick
Copy link
Member

jglick commented Jul 15, 2019

Amends #449 right?

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

Successfully merging this pull request may close these issues.

2 participants