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

[v1.29] Update k8s dependencies to 0.29.3 & controller runtime to 0.16.5 #62

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

krunalhinguu
Copy link
Contributor

@krunalhinguu krunalhinguu commented Mar 29, 2024

Update

  • Add v1.29 support till March patches (0.29.3).
  • Bump controller runtime to 0.16.5
  • bumped go version to 1.21

Related

@krunalhinguu krunalhinguu requested a review from a team as a code owner March 29, 2024 08:16
@krunalhinguu krunalhinguu force-pushed the k8s-1.29.0 branch 2 times, most recently from be44738 to f145685 Compare March 29, 2024 08:24
@krunalhinguu krunalhinguu changed the title K8s 1.29.0 [v1.29] Update k8s dependencies to 0.29.3 & controller runtime to 0.16.3 Mar 29, 2024
@krunalhinguu krunalhinguu requested a review from kinarashah April 5, 2024 05:23
@krunalhinguu krunalhinguu force-pushed the k8s-1.29.0 branch 2 times, most recently from 750d48d to 400c567 Compare April 17, 2024 05:11
@krunalhinguu krunalhinguu changed the title [v1.29] Update k8s dependencies to 0.29.3 & controller runtime to 0.16.3 [v1.29] Update k8s dependencies to 0.29.3 & controller runtime to 0.16.5 Apr 17, 2024
@krunalhinguu krunalhinguu force-pushed the k8s-1.29.0 branch 2 times, most recently from 06c9953 to 1c0e8cc Compare April 22, 2024 20:31
@mitulshah-suse mitulshah-suse requested a review from tomleb April 23, 2024 14:31
go.mod Outdated
@@ -1,28 +1,28 @@
module github.com/rancher/lasso

go 1.20
go 1.22
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest we stay on the minimum Go version possible given that lasso and by extension wrangler are used by many projects. Forcing 1.22 here would force wrangler to be 1.22 as well, which would then force rke2/k3s/rancher to also use 1.22.

It seems like the minimum version here is 1.21 (that's what k8s 1.29 requires).

@MbolotSuse This could be added to the versioning strategy ADR, or maybe the README here, or maybe both. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tomleb i have migrated to go 1.22 , because we have bumped 1.22 in rancher/rancher.

Also same i have discussed with @kinarashah.

Copy link
Contributor

Choose a reason for hiding this comment

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

@krunalhinguu Right, but what I'm saying is that there's multiple projects using lasso. So while rancher is on 1.22, the following aren't:

Copy link
Contributor Author

@krunalhinguu krunalhinguu Apr 24, 2024

Choose a reason for hiding this comment

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

@tomleb Threse three and also wrangler and some other repos i am updating to go1.22 with the process in next few PRs, Althoguh i'm not sure about rke2,k3s.

aks-operator -> 1.21
eks-operator -> 1.21
gke-operator -> 1.21

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The complete list which i am updating to go1.22

  • lasso
  • wrangler
  • norman
  • dynamiclistener
  • machine
  • apiserver
  • steve
  • eks
  • aks
  • gke
  • rke
  • rancher

Copy link
Contributor

@MbolotSuse MbolotSuse Apr 24, 2024

Choose a reason for hiding this comment

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

@krunalhinguu As @tomleb has noted, this is not universal to wrangler/lasso's consumers. K3s and RKE2 both use this library, and we can't guarantee that they will move to 1.22. For now Tom's comment stands - this PR should use 1.21 as this is the go version supported by k8s 1.29, and we don't want to add extra requirements on top of the upstream libraries.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay. let me make changes

Copy link
Contributor

@MbolotSuse MbolotSuse left a comment

Choose a reason for hiding this comment

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

Blocking until decision on go version is resolved.

@krunalhinguu
Copy link
Contributor Author

@tomleb @MbolotSuse go version is changed in downgraded to go1.21.

Copy link
Contributor

@tomleb tomleb left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@MbolotSuse MbolotSuse merged commit d87ec40 into rancher:master Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants