Skip to content

Operator-SDK support only gs.k8s.io/kubebuilder/v3/pkg/plugin not sigs.k8s.io/kubebuilder/v4/pkg/config".Version #157

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

Closed
xstefank opened this issue Aug 15, 2024 · 2 comments · Fixed by #158

Comments

@xstefank
Copy link
Collaborator

Bug Report

What did you do?

I'm trying to update operator-sdk to java-operator-plugins v0.11.0.

What did you expect to see?

Clean integration.

What did you see instead? Under which circumstances?

internal/cmd/operator-sdk/cli/cli.go:174:4: cannot use &quarkusv1.Plugin{} (value of type *"github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1beta".Plugin) as "sigs.k8s.io/kubebuilder/v3/pkg/plugin".Plugin value in argument to cli.WithPlugins: *"github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1beta".Plugin does not implement "sigs.k8s.io/kubebuilder/v3/pkg/plugin".Plugin (wrong type for method SupportedProjectVersions)
		have SupportedProjectVersions() []"sigs.k8s.io/kubebuilder/v4/pkg/config".Version
		want SupportedProjectVersions() []"sigs.k8s.io/kubebuilder/v3/pkg/config".Version

Possible Solution

This was introduced in 059d5fc. Possibly degrade kubebuilder to v3 as it seems that operator-sdk is not updating it.

@xstefank
Copy link
Collaborator Author

@metacosm what do you think? Can I revert that upgrade commit or what is the best way to proceed here?

@metacosm
Copy link
Collaborator

Yes, we're bound to use whichever kubebuilder version is used by the plugin host…

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 a pull request may close this issue.

2 participants