-
Notifications
You must be signed in to change notification settings - Fork 29
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
Update for kubernetes-client-api.version v6.8.1 #39
Conversation
pom.xml
Outdated
@@ -3,7 +3,7 @@ | |||
<parent> | |||
<groupId>org.jenkins-ci.plugins</groupId> | |||
<artifactId>plugin</artifactId> | |||
<version>4.50</version> | |||
<version>4.66</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I bumped this to 4.66 due to needing a higher version of configuration-as-code-plugin.
Version 1647.ve39ca_b_829b_42 onwards of configuration-as-code includes changes made for the html 3.x update. As you can see further down, I have bumped configuration-as-code to the latest release.
<bom.version>1763.v092b_8980a_f5e</bom.version> | ||
<jenkins.version>2.401.1</jenkins.version> | ||
<bom.artifactId>bom-2.401.x</bom.artifactId> | ||
<bom.version>2244.vd60654536b_96</bom.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When initially bumping kubernetes-client-api, it needed a dependency on snakeyaml-api 2.0 and Jenkins needed to be at least 2.361.4 or higher.
pom.xml
Outdated
|
||
<!-- dependency versions --> | ||
<authentication-tokens.version>1.3</authentication-tokens.version> | ||
<docker-commons.version>1.15</docker-commons.version> | ||
<google-oauth-plugin.version>0.8</google-oauth-plugin.version> | ||
<kubernetes-client-api.version>6.3.1-206.v76d3b_6b_14db_b</kubernetes-client-api.version> | ||
<kubernetes-client-api.version>6.8.1-220.v1f66736f9a_42</kubernetes-client-api.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This version number will need to be checked when this PR is merged jenkinsci/kubernetes-client-api-plugin#221 and we have a new release version for kubernetes-client-api. It needs to be at least 6.8.0 to be compatible with the snakeyaml 2.0 changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throw new KubernetesAuthException(e.getMessage(), e); | ||
} | ||
io.fabric8.kubernetes.api.model.Config kubeConfig = KubeConfigUtils.parseConfigFromString(getKubeconfig()); | ||
return new io.fabric8.kubernetes.api.model.ConfigBuilder(kubeConfig); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When bumping to version 6.8.1 we had a compilation error on this try catch:
kubernetes-credentials-plugin\src\main\java\org\jenkinsci\plugins\kubernetes\auth\impl\KubernetesAuthKubeconfig.java:[35,10] error: exception IOException is never thrown in body of corresponding try statement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could change it to catch a general Exception
perhaps?
Hi @maxlaverse, we are looking into a coordinated releases of the plugins depending on https://github.com/jenkinsci/kubernetes-client-api-plugin (as this project tend to introduce breaking changes regularly). Could you give some indication of your availability to let this happen? Otherwise, would you be okay for a co-maintainership on this plugin? |
Co-authored-by: Robert Sandell <rsandell@cloudbees.com>
pom.xml
Outdated
<dependency> | ||
<groupId>io.jenkins.plugins</groupId> | ||
<artifactId>snakeyaml-api</artifactId> | ||
<version>2.1-110.v4960f4074978</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the incremental version of snakeyaml-api, needs to be updated when jenkinsci/snakeyaml-api-plugin#94 is merged and released
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@julieheard , could you merge master into your branch ? I've removed support for Java 8.
I should be able to do the release within 1-2hours lag behind the merge of the downstream PR, on CEST day @Vlatombe. I'm definitely open to co-maintainership for this plugin. |
Done, thank you Maxime 🙂 |
I've prepared my local environment for the release but I'm entering a car for ~6hours. I added you as collaborator in case I don't manage to release during a break and you want to have it done earlier @Vlatombe |
Thanks! I just checked that I already have deploy rights to repo.jenkins-ci.org on this plugin, so this should be fine. |
Downstream of jenkinsci/kubernetes-client-api-plugin#221
I will keep this PR in draft until the PR for kubernetes-client-api is merged and we can check the above points.
Testing done
I ran mvn verify to test locally and all working, all tests passing
Submitter checklist