Skip to content

Commit

Permalink
fixup! Use crd-schema-gen image in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
damemi committed Jul 9, 2019
1 parent d44e933 commit 7506a65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ PKG := ${PWD:${GOPATH}/%=%}
update-codegen-crds:
docker run -v ${PWD}:/go/$(PKG):Z -w /go/$(PKG) registry.svc.ci.openshift.org/ocp/4.2:crd-schema-gen --apis-dir vendor/github.com/openshift/api/operator/v1
update-codegen: update-codegen-crds

TMP_GOPATH :=$(shell mktemp -d)
verify-codegen-crds:
go get github.com/openshift/crd-schema-gen/... && go install github.com/openshift/crd-schema-gen/...
export GOPATH=$(TMP_GOPATH) && export GOBIN=$(TMP_GOPATH)/bin && git clone -b release-4.2 --single-branch --depth 1 https://github.com/openshift/crd-schema-gen.git $(TMP_GOPATH)/src/github.com/openshift/crd-schema-gen && go install $(TMP_GOPATH)/src/github.com/openshift/crd-schema-gen/cmd/crd-schema-gen
crd-schema-gen --apis-dir vendor/github.com/openshift/api/operator/v1 --verify-only
verify-codegen: verify-codegen-crds
verify: verify-codegen
Expand Down

0 comments on commit 7506a65

Please sign in to comment.