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

Bump golang dependencies #504

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

karampok
Copy link

@karampok karampok commented Feb 6, 2025

Is this a BUG FIX or a FEATURE ?:

Uncomment only one, leave it on its own line:

/kind bug
/kind cleanup
/kind feature
/kind design
/kind flake
/kind failing
/kind documentation
/kind regression

What this PR does / why we need it:

Special notes for your reviewer:

Removed pin versions for kubernetes 1.27, not trivial because that was 2 years ago.
Update various parts to be aligned on k8s 1.30 (not pinned) like k8s.io/* to 1.30.z, k8s.io/client-go to 0.30.z, kind, operator-sdk, kustomize.

Release note:

NONE

remove pin versions

Signed-off-by: karampok <[email protected]>
Signed-off-by: karampok <[email protected]>
@karampok karampok force-pushed the bump-go-dep branch 5 times, most recently from 87c7cf5 to b17e919 Compare February 7, 2025 13:24
@karampok karampok marked this pull request as ready for review February 7, 2025 15:20
kind updated to have default version k8s 1.30

operator-sdk v1.38.0 moves to k8s 1.30 API's and Kubebuilder v4 Scaffolding,

RBAC changed because the client-go bump start failing with error
```
  pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:232: failed to list *v1.Deployment: deployments.apps is forbidd
en: User "system:serviceaccount:metallb-system:manager-account" cannot list resource "deployments" in API group "apps" at the cluster scope
```

Signed-off-by: karampok <[email protected]>
@karampok
Copy link
Author

karampok commented Feb 7, 2025

@fedepaol after unpinning, there was a bit of mess (e.g. dep under require was updated x to y, but pined under replace in z, so when y never used, but when added manual the z the go mod start changing stuff ...).

Anyway, I tried to clean the go.mod file, remove all the pins and tried to align everything around version1.30 and get a green ci.

Pretty sure that you might find too many updates, not sure we can avoid it though.
But let's discuss over a code review how to proceed.


LeaderElection: *enableLeaderElection,
LeaderElectionID: "metallb.io.metallboperator",
// Namespace: envParams.Namespace,
Copy link
Author

@karampok karampok Feb 7, 2025

Choose a reason for hiding this comment

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

This change is something what I need to double check ( in newer controller-runtime this field went away but did not see how was replaced)

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.

1 participant