You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do?
Implement a MAJOR plugin version with breaking checkings supported ONLY for V3 Project layouts. See: #1498
What did you expect to see?
When I run the KB commands for V2 PROJECT version the upper plugin versions which is supported by V2 projects be used.
When I run the KB commands for V3 PROJECT version the upper plugin version which is supported by V3 projects be used.
What did you see instead? Under which circumstances?
The error duplicate initialization plugins for project version "3-alpha": go.kubebuilder.io, go.kubebuilder.io.
Note that c.resolvedPlugins will return all supported plugins for the PROJECT version.
So, in the scenario where we have :
// When has more than one supportable plugin. E.g:
// - go.kubebuilder.io/v2.0.0 which is supported by V2 and V3
// - go.kubebuilder.io/v3.0.0 which is supported by V3
And we are scaffolding a project for V3 it will return go.kubebuilder.io/v2.0.0 and go.kubebuilder.io/v3.0.0 . In this scenario, we should use the upper one which is go.kubebuilder.io/v3.0.0 and the piece to get the upper version is not currently implemented.
The text was updated successfully, but these errors were encountered:
What did you do?
Implement a MAJOR plugin version with breaking checkings supported ONLY for V3 Project layouts. See: #1498
What did you expect to see?
What did you see instead? Under which circumstances?
The error
duplicate initialization plugins for project version "3-alpha": go.kubebuilder.io, go.kubebuilder.io
.Possible Solution
The error is in:
https://github.com/kubernetes-sigs/kubebuilder/blob/master/pkg/cli/api.go#L59-L69
Note that
c.resolvedPlugins
will return all supported plugins for the PROJECT version.So, in the scenario where we have :
And we are scaffolding a project for V3 it will return
go.kubebuilder.io/v2.0.0
andgo.kubebuilder.io/v3.0.0
. In this scenario, we should use the upper one which isgo.kubebuilder.io/v3.0.0
and the piece to get the upper version is not currently implemented.The text was updated successfully, but these errors were encountered: