stolostron / klusterlet-addon-controller

Apache License 2.0
4 stars 22 forks source link

File does not exist after run "make utils-crds-install" #41

Open xuezhaojun opened 3 years ago

xuezhaojun commented 3 years ago

Hi guys, I'm trying to install klusterlet-addon-controller on my hub cluster and after I run make utils-crds-install and I got:

kubectl apply -f deploy/dev-crds/agent.open-cluster-management.io_klusterletaddonconfigs_crd.yaml
go: downloading k8s.io/client-go v0.20.0
go: downloading github.com/open-cluster-management/api v0.0.0-20210409125704-06f2aec1a73f
go: downloading k8s.io/apimachinery v0.20.0
go: downloading k8s.io/api v0.20.0
go: downloading github.com/Masterminds/semver v1.5.0
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading github.com/open-cluster-management/library-go v0.0.0-20200828173847-299c21e6c3fc
go: downloading github.com/openshift/api v3.9.1-0.20190924102528-32369d4db2ad+incompatible
go: downloading github.com/Masterminds/sprig v2.22.0+incompatible
go: downloading k8s.io/apiextensions-apiserver v0.20.0
go: downloading github.com/Masterminds/goutils v1.1.0
go: downloading github.com/imdario/mergo v0.3.9
error: the path "deploy/dev-crds/agent.open-cluster-management.io_klusterletaddonconfigs_crd.yaml" does not exist
make: *** [utils-crds-install] 错误 1

I checked the main branch and found no file named agent.open-cluster-management.io_klusterletaddonconfigs_crd.yaml in deploy/dev-crds/.

Am I doing anything wrong? Hope for you help plz

xuezhaojun commented 3 years ago

I temporarily fixed this by change: https://github.com/open-cluster-management/klusterlet-addon-controller/blob/893ce866659b78f8cf6caafa233ad2958a075cd8/Makefile#L123 To:

kubectl apply -f deploy/agent.open-cluster-management.io_klusterletaddonconfigs_crd.yaml