Skip to content

Commit de959c3

Browse files
committed
Generate protobufs for packaging resources
1 parent 5e5c0e6 commit de959c3

19 files changed

+11404
-163
lines changed

go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ require (
66
github.com/ghodss/yaml v1.0.0
77
github.com/go-logr/logr v0.4.0
88
github.com/go-openapi/spec v0.19.3
9+
github.com/gogo/protobuf v1.3.1
910
github.com/google/go-containerregistry v0.1.2
1011
github.com/vmware-tanzu/carvel-vendir v0.19.0
1112
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9

hack/gen-apiserver.sh

+6
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,9 @@ $GOPATH/bin/openapi-gen \
5555
--output-package "${KC_PKG}/pkg/apiserver/openapi" \
5656
-O zz_generated.openapi \
5757
--go-header-file hack/gen-boilerplate.txt
58+
59+
$GOPATH/bin/go-to-protobuf \
60+
--proto-import vendor \
61+
--packages "${KC_PKG}/pkg/apiserver/apis/datapackaging/v1alpha1,${KC_PKG}/pkg/apis/kappctrl/v1alpha1" \
62+
--go-header-file hack/gen-boilerplate.txt
63+

0 commit comments

Comments
 (0)