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

Rotator fails to compile with cotroller-runtime 0.18.1 #207

Closed
zbindenren opened this issue May 3, 2024 · 10 comments
Closed

Rotator fails to compile with cotroller-runtime 0.18.1 #207

zbindenren opened this issue May 3, 2024 · 10 comments

Comments

@zbindenren
Copy link

If you try you get the following error:

 github.com/open-policy-agent/cert-controller/pkg/rotator
.go/pkg/mod/github.com/open-policy-agent/cert-controller@v0.10.1/pkg/rotator/rotator.go:703:24: not enough arguments in call to source.Kind
	have ("sigs.k8s.io/controller-runtime/pkg/cache".Cache, *"k8s.io/api/core/v1".Secret)
	want ("sigs.k8s.io/controller-runtime/pkg/cache".Cache, T, handler.TypedEventHandler[T], ...predicate.TypedPredicate[T])
.go/pkg/mod/github.com/open-policy-agent/cert-controller@v0.10.1/pkg/rotator/rotator.go:704:3: too many arguments in call to c.Watch
	have (source.SyncingSource, *handler.TypedEnqueueRequestForObject[client.Object])
	want (source.Source)
.go/pkg/mod/github.com/open-policy-agent/cert-controller@v0.10.1/pkg/rotator/rotator.go:714:25: not enough arguments in call to source.Kind
	have ("sigs.k8s.io/controller-runtime/pkg/cache".Cache, *unstructured.Unstructured)
	want ("sigs.k8s.io/controller-runtime/pkg/cache".Cache, T, handler.TypedEventHandler[T], ...predicate.TypedPredicate[T])
.go/pkg/mod/github.com/open-policy-agent/cert-controller@v0.10.1/pkg/rotator/rotator.go:715:4: too many arguments in call to c.Watch
	have (source.SyncingSource, handler.EventHandler)
	want (source.Source)
@kerthcet
Copy link

+1 we use 0.18.2.

@yangzuo0621
Copy link

The master branch has been updated to v0.18.3 for sigs.k8s.io/controller-runtime, but a release for this version has not been made yet.

@fedepaol
Copy link
Contributor

@maxsmythe @ritazh @sozercan would it be possible to cut a release? We are hitting the same error while bumping MetalLB deps.

Thanks a lot!

@danielvegamyhre
Copy link

Any estimate for when this will be done? This is blocking our project from upgrading to k8s api v0.30 since it requires controller-runtime v0.18+, which is not compatible with cert-controller's latest release.

@sozercan
Copy link
Member

sozercan commented Aug 8, 2024

Sorry for the delay. We can cut a new release. @ritazh @maxsmythe any objections?

@ritazh
Copy link
Member

ritazh commented Aug 8, 2024

Sorry for the delay. We can cut a new release. @ritazh @maxsmythe any objections?

sgtm

@sozercan
Copy link
Member

sozercan commented Aug 8, 2024

https://github.com/open-policy-agent/cert-controller/releases/tag/v0.11.0 is available now!

@sozercan sozercan closed this as completed Aug 8, 2024
@kerthcet
Copy link

kerthcet commented Aug 9, 2024

Awesome, thanks!

Update:

I tried with v0.18.4, seems the problem still occurs, I believe this should be the right version to fix the bug, right? Thanks again @ritazh @sozercan

@kerthcet
Copy link

kerthcet commented Aug 9, 2024

Wait a minute, let me check again.

@kerthcet
Copy link

kerthcet commented Aug 9, 2024

Yeah, that's my mistake, exactly got fixed. Sorry for the misleading.

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

No branches or pull requests

7 participants