Open supra08 opened 4 years ago
Hey @supra08,
My guess is kubebuilder
isn't installed properly with all the dependencies but to get around this error can you do
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.4
controller-gen
should be in your path
No still no success. What I suspect is wordpress/controllers
is not generated properly. It is empty.
It is showing an import error in main.go
:
wordpressv1 "wordpress/api/v1"
23
✖ 24 "wordpress/controllers" compiler: could not import wordpress/controllers (no package for import wordpress/controllers)
25
26 "k8s.io/apimachinery/pkg/runtime"
I guess it is failing to build because of this: https://github.com/salesforce/craft/blob/master/cmd/build.go#L128 It supports linux but I am building on mac.
That section of build.go
isn't for the user, it's for the container (building the manager
binary that we can add in the container)
can you tell which version of kubebuilder you are using?
Version: version.Version{KubeBuilderVersion:"2.2.0", KubernetesVendor:"1.15.5", GitCommit:"0824a139f59e109c9e418a0b6e71a53c6e9e144f", BuildDate:"2019-11-20T00:00:24Z", GoOs:"unknown", GoArch:"unknown"}
While running the
craft create
command, it threw some errors in the logs but those were labelled as [INFO]: