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

Support for go/v4-alpha for hybrid plugins. #246

Open
ryanm101 opened this issue Nov 27, 2023 · 1 comment
Open

Support for go/v4-alpha for hybrid plugins. #246

ryanm101 opened this issue Nov 27, 2023 · 1 comment

Comments

@ryanm101
Copy link

Trying to build an operator on an M1 Mac.

Seems the hybrid plugin doesnt support the v4 plugin yet.

@varshaprasad96
Copy link
Member

@ryanm101 Checking the commits, looks like hybrid plugin does support go/v4 (v4-alpha has been deprecated by kubebuilder):

err = scaffold.Execute(
&templates.Main{},
&templates.GoMod{ControllerRuntimeVersion: golangv4.ControllerRuntimeVersion},
&templates.GitIgnore{},
&templates.Watches{},
&rbac.ManagerRole{},
&templates.Makefile{
Image: imageName,
KustomizeVersion: kustomizev2.KustomizeVersion,
HybridOperatorVersion: hybridOperatorVersion,
ControllerToolsVersion: golangv4.ControllerToolsVersion,
ControllerRuntimeVersion: golangv4.ControllerRuntimeVersion,
},
&templates.Dockerfile{},
&templates.DockerIgnore{},
. However, Operator SDK has not bumped the hybrid plugin commit yet to point it to the one that supports this - which is why you had been facing the error. The work on Operator SDK CLI's end to bump the plugin is in progress: operator-framework/operator-sdk#6613. A release after this PR is merged, should fix this issue.

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

2 participants