diff --git a/Gopkg.toml b/Gopkg.toml index bb83c98dcb..0a930b3e44 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -20,6 +20,9 @@ required = [ # Needed for spell checking "github.com/client9/misspell/cmd/misspell", + + # Needed for CRD generation + "sigs.k8s.io/controller-tools/cmd/controller-gen", ] [prune] diff --git a/Makefile b/Makefile index 329d2d5380..7485b9515a 100644 --- a/Makefile +++ b/Makefile @@ -847,3 +847,7 @@ dev-copy-utils: .PHONY: dev-upload dev-upload: dev-upload-nodeup dev-upload-protokube dev-copy-utils 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/