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.33.0: Quarkus: panic: interface conversion: *v1.Plugin is not plugin.Deprecated: missing method DeprecationWarning #6645

Open
stellirin opened this issue Dec 20, 2023 · 11 comments · May be fixed by operator-framework/java-operator-plugins#153
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Milestone

Comments

@stellirin
Copy link

Bug Report

What did you do?

git checkout v1.33.0
make build
operator-sdk init --plugins quarkus --domain halkyon.io --project-name expose

What did you expect to see?

Next: define a resource with:
$ operator-sdk create api

What did you see instead? Under which circumstances?

panic: interface conversion: *v1.Plugin is not plugin.Deprecated: missing method DeprecationWarning

goroutine 1 [running]:
sigs.k8s.io/kubebuilder/v3/pkg/cli.CLI.printDeprecationWarnings({{0x33beeda, 0xc}, {0xc0000e2160, 0xab}, {0x34502d7, 0x37}, 0xc0006cec60, 0xc0006cec90, {0x3, 0x0}, ...})
	/Users/stellirin/go/pkg/mod/sigs.k8s.io/kubebuilder/[email protected]/pkg/cli/cli.go:446 +0x7a
sigs.k8s.io/kubebuilder/v3/pkg/cli.New({0xc00070f670?, 0x62?, 0xc00070f708?})
	/Users/stellirin/go/pkg/mod/sigs.k8s.io/kubebuilder/[email protected]/pkg/cli/cli.go:116 +0x178
github.com/operator-framework/operator-sdk/internal/cmd/operator-sdk/cli.GetPluginsCLIAndRoot()
	operator-sdk/internal/cmd/operator-sdk/cli/cli.go:161 +0x1a30
github.com/operator-framework/operator-sdk/internal/cmd/operator-sdk/cli.Run()
	operator-sdk/internal/cmd/operator-sdk/cli/cli.go:75 +0x1b
main.main()
	operator-sdk/cmd/operator-sdk/main.go:28 +0x13

Environment

Operator type:

Kubernetes cluster type:

$ operator-sdk version

$ go version (if language is Go)

$ kubectl version

Possible Solution

Additional context

Checkout and build of v1.32.0 give me functional operator-sdk.

@Sparker0i
Copy link

I'm facing the Same issue as well on a new Mac. Downgrading back to v1.32.0 worked for the time being..

@varshaprasad96
Copy link
Member

@csviri could you please take a look at this issue as this is related to Java Operator plugin. Thanks!

@csviri
Copy link

csviri commented Jan 9, 2024

cc @metacosm

@metacosm
Copy link

metacosm commented Jan 9, 2024

I haven't looked at the details yet but the problem is most likely that no one has released the java operator plugin before releasing the 1.33 version of the cli. A fix will most likely involve such a release and a new operator-sdk cli release as well.

@jberkhahn
Copy link
Contributor

This will be fixed in the next release. We probably need to add some checks to our pipeline to make sure this sort of thing doesn't happen again.

@jberkhahn jberkhahn added priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Jan 22, 2024
@jberkhahn jberkhahn added this to the Backlog milestone Jan 22, 2024
@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 22, 2024
@Sparker0i
Copy link

Hi @jberkhahn, is there any update to this?

@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 16, 2024
@amitmun
Copy link

amitmun commented Jun 23, 2024

Is there a workaround for this issue until it is fixed?

@kemosabe102
Copy link

This is still a problem.

@metacosm
Copy link

I would suggest to just bootstrap your Quarkus-based operator by following the bootstraping instructions and then use the iterative development mode with the qosdk api Dev mode command to create an API (CRD + associated classes).

Moving forward, supporting this plugin will not be a priority (unless the community steps up to maintain it) as the Quarkus Dev mode commands are more natural to a Quarkus-based workflow and can be updated much faster and in synch with the Java SDK releases (which isn't the case here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants