mirror of https://github.com/kubernetes/kops.git
Use kubebuilder libraries to generate CRDs
(Add the dependency on kubebuilder also)
This commit is contained in:
parent
a8a1f7e33d
commit
247cd78851
|
@ -20,6 +20,9 @@ required = [
|
||||||
|
|
||||||
# Needed for spell checking
|
# Needed for spell checking
|
||||||
"github.com/client9/misspell/cmd/misspell",
|
"github.com/client9/misspell/cmd/misspell",
|
||||||
|
|
||||||
|
# Needed for CRD generation
|
||||||
|
"sigs.k8s.io/controller-tools/cmd/controller-gen",
|
||||||
]
|
]
|
||||||
|
|
||||||
[prune]
|
[prune]
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -847,3 +847,7 @@ dev-copy-utils:
|
||||||
.PHONY: dev-upload
|
.PHONY: dev-upload
|
||||||
dev-upload: dev-upload-nodeup dev-upload-protokube dev-copy-utils
|
dev-upload: dev-upload-nodeup dev-upload-protokube dev-copy-utils
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
||||||
|
.PHONY: crds
|
||||||
|
crds:
|
||||||
|
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go crd --apis-path pkg/apis/kops/v1alpha2 --domain k8s.io --output-dir k8s/crds/
|
||||||
|
|
Loading…
Reference in New Issue