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

Update for kubernetes-client-api.version v6.8.1 #39

Merged
merged 10 commits into from
Aug 29, 2023
Merged

Update for kubernetes-client-api.version v6.8.1 #39

merged 10 commits into from
Aug 29, 2023

Conversation

julieheard
Copy link

@julieheard julieheard commented Aug 17, 2023

Downstream of jenkinsci/kubernetes-client-api-plugin#221

  1. When the above PR for kubernetes-client-api-plugin is merged and we get a new release, we need to check the new version number against what I have put in the pom for the version number on this plugin PR.
  2. I have included a dependency on snakeyaml-api 2.0 which is currently not released - PR is here Bump org.yaml:snakeyaml from 1.33 to 2.1 snakeyaml-api-plugin#94. When the new release version for kubernetes-client-api-plugin is sorted, we can re-run tests and check if the snakeyaml 2.0+ dependency is needed. If it is needed, we will also need a release of snakeyaml-api and will need to include that released version in this PR.

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

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>
Copy link
Author

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>
Copy link
Author

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>
Copy link
Author

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.

Copy link
Member

@Vlatombe Vlatombe Aug 25, 2023

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);
Copy link
Author

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

Copy link
Member

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?

pom.xml Outdated Show resolved Hide resolved
@Vlatombe
Copy link
Member

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?

pom.xml Outdated
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>snakeyaml-api</artifactId>
<version>2.1-110.v4960f4074978</version>
Copy link
Author

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

Copy link
Member

@Vlatombe Vlatombe Aug 25, 2023

Choose a reason for hiding this comment

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

@rsandell
Copy link
Member

rsandell commented Aug 22, 2023

Looks like the pom needs to be modernised as well? The build error indicates that maven is running with an old jdk?

Perhaps #37 or #38 would fix that?

@maxlaverse
Copy link

@julieheard , could you merge master into your branch ? I've removed support for Java 8.

Could you give some indication of your availability to let this happen?

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.

@julieheard
Copy link
Author

Done, thank you Maxime 🙂

pom.xml Outdated Show resolved Hide resolved
@maxlaverse
Copy link

maxlaverse commented Aug 29, 2023

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

@julieheard julieheard marked this pull request as ready for review August 29, 2023 13:40
@Vlatombe
Copy link
Member

Thanks! I just checked that I already have deploy rights to repo.jenkins-ci.org on this plugin, so this should be fine.

@Vlatombe Vlatombe merged commit f53d383 into jenkinsci:master Aug 29, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants