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

build(deps): bump k8s.io/client-go from 0.25.4 to 0.26.0 #11421

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 12, 2022

Bumps k8s.io/client-go from 0.25.4 to 0.26.0.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Dec 12, 2022
@travisn
Copy link
Member

travisn commented Dec 12, 2022

When I try to update the go modules locally, I also get the same build error being seen in the bot PR. It's not clear what the solution is yet.

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go vet  -tags '' github.com/rook/rook/cmd/... github.com/rook/rook/pkg/... github.com/rook/rook/tests/integration
# sigs.k8s.io/controller-runtime/pkg/cache
../../../../pkg/mod/sigs.k8s.io/controller-runtime@v0.13.1/pkg/cache/informer_cache.go:144:9: cannot use i.Informer (variable of type "k8s.io/client-go/tools/cache".SharedIndexInformer) as type Informer in return statement:
	"k8s.io/client-go/tools/cache".SharedIndexInformer does not implement Informer (wrong type for AddEventHandler method)
		have AddEventHandler(handler "k8s.io/client-go/tools/cache".ResourceEventHandler) ("k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration, error)
		want AddEventHandler(handler "k8s.io/client-go/tools/cache".ResourceEventHandler)
../../../../pkg/mod/sigs.k8s.io/controller-runtime@v0.13.1/pkg/cache/informer_cache.go:158:9: cannot use i.Informer (variable of type "k8s.io/client-go/tools/cache".SharedIndexInformer) as type Informer in return statement:
	"k8s.io/client-go/tools/cache".SharedIndexInformer does not implement Informer (wrong type for AddEventHandler method)
		have AddEventHandler(handler "k8s.io/client-go/tools/cache".ResourceEventHandler) ("k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration, error)
		want AddEventHandler(handler "k8s.io/client-go/tools/cache".ResourceEventHandler)
# github.com/openshift/cluster-api/pkg/apis/machine/v1beta1
../../../../pkg/mod/github.com/openshift/cluster-api@v0.0.0-20191129101638-b09907ac6668/pkg/apis/machine/v1beta1/machineset_types.go:179:83: not enough arguments in call to metav1validation.ValidateLabelSelector
	have (*"k8s.io/apimachinery/pkg/apis/meta/v1".LabelSelector, *field.Path)
	want (*"k8s.io/apimachinery/pkg/apis/meta/v1".LabelSelector, validation.LabelSelectorValidationOptions, *field.Path)
make[1]: *** [go.vet] Error 2
make: *** [build.common] Error 2

@subhamkrai
Copy link
Contributor

When I try to update the go modules locally, I also get the same build error being seen in the bot PR. It's not clear what the solution is yet.

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go vet  -tags '' github.com/rook/rook/cmd/... github.com/rook/rook/pkg/... github.com/rook/rook/tests/integration
# sigs.k8s.io/controller-runtime/pkg/cache
../../../../pkg/mod/sigs.k8s.io/controller-runtime@v0.13.1/pkg/cache/informer_cache.go:144:9: cannot use i.Informer (variable of type "k8s.io/client-go/tools/cache".SharedIndexInformer) as type Informer in return statement:
	"k8s.io/client-go/tools/cache".SharedIndexInformer does not implement Informer (wrong type for AddEventHandler method)
		have AddEventHandler(handler "k8s.io/client-go/tools/cache".ResourceEventHandler) ("k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration, error)
		want AddEventHandler(handler "k8s.io/client-go/tools/cache".ResourceEventHandler)
../../../../pkg/mod/sigs.k8s.io/controller-runtime@v0.13.1/pkg/cache/informer_cache.go:158:9: cannot use i.Informer (variable of type "k8s.io/client-go/tools/cache".SharedIndexInformer) as type Informer in return statement:
	"k8s.io/client-go/tools/cache".SharedIndexInformer does not implement Informer (wrong type for AddEventHandler method)
		have AddEventHandler(handler "k8s.io/client-go/tools/cache".ResourceEventHandler) ("k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration, error)
		want AddEventHandler(handler "k8s.io/client-go/tools/cache".ResourceEventHandler)
# github.com/openshift/cluster-api/pkg/apis/machine/v1beta1
../../../../pkg/mod/github.com/openshift/cluster-api@v0.0.0-20191129101638-b09907ac6668/pkg/apis/machine/v1beta1/machineset_types.go:179:83: not enough arguments in call to metav1validation.ValidateLabelSelector
	have (*"k8s.io/apimachinery/pkg/apis/meta/v1".LabelSelector, *field.Path)
	want (*"k8s.io/apimachinery/pkg/apis/meta/v1".LabelSelector, validation.LabelSelectorValidationOptions, *field.Path)
make[1]: *** [go.vet] Error 2
make: *** [build.common] Error 2

I tried to look into this and seems like an error is coming from controller-runtime pg

@subhamkrai
Copy link
Contributor

we can wait for few days or I'll create an issue in controller runtime, if we all agree it controller-runtime issue

@Madhu-1
Copy link
Member

Madhu-1 commented Dec 13, 2022

we can wait for few days or I'll create an issue in controller runtime, if we all agree it controller-runtime issue

Looks like controller-runtime just got updated kubernetes 0.26.0 kubernetes-sigs/controller-runtime#2087, need to wait for new controller-runtime release

@subhamkrai
Copy link
Contributor

we can wait for few days or I'll create an issue in controller runtime, if we all agree it controller-runtime issue

Looks like controller-runtime just got updated kubernetes 0.26.0 kubernetes-sigs/controller-runtime#2087, need to wait for new controller-runtime release

right, then let's wait for the new release than

@Madhu-1
Copy link
Member

Madhu-1 commented Dec 16, 2022

New controller-runtime release https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.14.0 which supports v1.26

@travisn
Copy link
Member

travisn commented Dec 16, 2022

Now there is just one remaining controller. I'm thinking this stale/unused code and will look at removing it.

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go vet  -tags '' github.com/rook/rook/cmd/... github.com/rook/rook/pkg/... github.com/rook/rook/tests/integration
# github.com/openshift/cluster-api/pkg/apis/machine/v1beta1
../../../../pkg/mod/github.com/openshift/cluster-api@v0.0.0-20191129101638-b09907ac6668/pkg/apis/machine/v1beta1/machineset_types.go:179:83: not enough arguments in call to metav1validation.ValidateLabelSelector
	have (*"k8s.io/apimachinery/pkg/apis/meta/v1".LabelSelector, *field.Path)
	want (*"k8s.io/apimachinery/pkg/apis/meta/v1".LabelSelector, validation.LabelSelectorValidationOptions, *field.Path)
make[1]: *** [go.vet] Error 2
make: *** [build.common] Error 2

@mergify
Copy link

mergify bot commented Dec 16, 2022

This pull request has merge conflicts that must be resolved before it can be merged. @dependabot[bot] please rebase it. https://rook.io/docs/rook/latest/Contributing/development-flow/#updating-your-fork

Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.25.4 to 0.26.0.
- [Release notes](https://github.com/kubernetes/client-go/releases)
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](kubernetes/client-go@v0.25.4...v0.26.0)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/go_modules/k8s.io/client-go-0.26.0 branch from 6a7651b to 43b523b Compare December 16, 2022 21:59
@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Labeled by the stale bot label Jan 16, 2023
@mergify
Copy link

mergify bot commented Jan 19, 2023

This pull request has merge conflicts that must be resolved before it can be merged. @dependabot[bot] please rebase it. https://rook.io/docs/rook/latest/Contributing/development-flow/#updating-your-fork

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 19, 2023

Superseded by #11569.

@dependabot dependabot bot closed this Jan 19, 2023
@dependabot dependabot bot deleted the dependabot/go_modules/k8s.io/client-go-0.26.0 branch January 19, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code stale Labeled by the stale bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants