-
Notifications
You must be signed in to change notification settings - Fork 889
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
inheritYamlMergeStrategy setting throws error when using podTemplate #1229
Comments
Any update on this case? based on error message, it seems this is an application bug. |
cc @Vlatombe any idea? |
I see that this feature was add here: a360087 |
I see this is added here: https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/templates/_helpers.tpl#L538
|
are you able to send a PR to revert it? |
yes, but I don't want to break others jenkins. To me, it's a Kubernetes plugins issue. I could be wrong. |
The value was added to support the configuration of taints and tolerations in the top-level pod template. If this is removed from the chart our cluster wont be able to schedule our agent pods. It is a supported option in the kubernetes-plugin, it's just not mentioned in the documentation. As @khosro-copper mentioned, it seems like this is a regression in the plugin itself, not the config. |
This is basically what helm diff command is trying to do, which then cause the above error:
|
Any update on this bug?? |
@timja Who else can help here to fix this issue please? |
Can you report it directly to the kubernetes plugins issue tracker please? |
The attribute was added in jenkinsci/kubernetes-plugin#1513 (so available in 4199.va_1647c280eb_2 and later). To me it looks like the casc configuration is being applied before upgrading the plugin, so it results into an error because the attribute doesn't exist in the version where it is being applied. The helm chart should make this attribute optional, and before applying it, one should use a recent enough version of the plugin. |
I agree the documentation should have been updated. Can you file a pull request to make it correct? |
I see I did have a quick look and didn't see when it was added. So a quick fix would be to update the kubernetes plugin version yourself first. |
@Vlatombe Our current Helm chart version is 5.1.6. So, would it be an issue if I upgrade the Kubernetes version first, even though our current Helm chart doesn’t support or recognize inheritYamlMergeStrategy yet? |
If you upgrade on 5.1.6 then upgrade the helm chart it should work fine |
no, the error shown above is coming from upgrading 5.1.6 to 5.7.8 |
@james1miller93 As suggested above, can you make this optional with default to True so it wouldn't break others Jenkins.
I am not sure how this can be achieved in helm chart. |
An update here: |
Describe the bug
Trying to upgrade from version 5.1.6 to 5.7.8 with helm, I see this error in jenkins controller:
And I am basically trying to override tolerations definition in the agent pods with overwriting my own definition, something like this:
I am also using Additional agents as well.
Version of Helm and Kubernetes
Chart version
jenkins-5.7.8
What happened?
...
What you expected to happen?
No response
How to reproduce it
No response
Anything else we need to know?
(inheritYamlMergeStrategy): The error states that inheritYamlMergeStrategy is an invalid attribute in the PodTemplate configuration. In the Kubernetes plugin’s current version, this attribute does not exist as a valid parameter.
Chart also is trying to upgrade kubernetes plugins (which is default behaviour)
And from configuration here: https://plugins.jenkins.io/kubernetes/#plugin-content-configuration-reference I don't see any inheritYamlMergeStrategy.
The text was updated successfully, but these errors were encountered: