Use kubebuilder libraries to generate CRDs

(Add the dependency on kubebuilder also)
This commit is contained in:
Justin SB 2019-05-07 10:32:23 -04:00
parent a8a1f7e33d
commit 247cd78851
No known key found for this signature in database
GPG Key ID: 8DEC5C8217494E37
2 changed files with 7 additions and 0 deletions

View File

@ -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]

View File

@ -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/