seaweedfs-operator icon indicating copy to clipboard operation
seaweedfs-operator copied to clipboard

make install, can't find resources

Open washcycle opened this issue 2 years ago • 3 comments

*OS Ubuntu go version go1.20 linux/amd64 k8s 1.24.9 kustomize v5.0.0

Steps

clone project (clean go and kustomize installs) and run the make install step.

Error

/home/foobar/go/bin/controller-gen "crd:trivialVersions=true,preserveUnknownFields=false" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
F0208 15:13:48.876445   22986 packages.go:59] Failed loading boilerplate: open k8s.io/kubernetes/hack/boilerplate/boilerplate.go.txt: no such file or directory

Expected

I expected the CRDs to install on the kubernetes cluster.

washcycle avatar Feb 08 '23 21:02 washcycle

I moved past that error by moving the hack folder files to a new directory structure

k8s.io/kubernetes/hack/boilerplate

new error says

/home/foobar/go/bin/controller-gen "crd:trivialVersions=true,preserveUnknownFields=false" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
F0208 15:51:36.863998    4023 packages.go:99] no valid types were specified

washcycle avatar Feb 08 '23 21:02 washcycle

Need some help here.

chrislusf avatar Feb 09 '23 00:02 chrislusf

@Programmeris Do you know how to fix this?

Seems make manifests step is generating the something weird.

chrislusf avatar Feb 09 '23 05:02 chrislusf