Skip to content

Commit

Permalink
Added an initial openapi protobuf generator for our resource APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeler committed Sep 21, 2023
1 parent 75ce7f2 commit fdff32f
Show file tree
Hide file tree
Showing 54 changed files with 13,491 additions and 1,922 deletions.
9 changes: 9 additions & 0 deletions build-support/scripts/devtools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ function proto_tools_install {
'github.com/hashicorp/mog'

install_protoc_gen_consul_rate_limit

install_protoc_gen_resource_openapi

return 0
}
Expand Down Expand Up @@ -272,5 +274,12 @@ function install_protoc_gen_consul_rate_limit {
popd > /dev/null
}

function install_protoc_gen_resource_openapi {
echo "installing tool protoc-gen-resource-openapi from local source"
pushd -- "${SOURCE_DIR}/internal/resource/protoc-gen-resource-openapi" > /dev/null
go install
popd > /dev/null
}

main "$@"
exit $?
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ require (
google.golang.org/grpc v1.55.0
google.golang.org/protobuf v1.30.0
gopkg.in/square/go-jose.v2 v2.5.1
gopkg.in/yaml.v3 v3.0.1
gotest.tools/v3 v3.4.0
k8s.io/api v0.26.2
k8s.io/apimachinery v0.26.2
Expand Down Expand Up @@ -272,7 +273,6 @@ require (
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/resty.v1 v1.12.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/klog/v2 v2.90.1 // indirect
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
Expand Down
Loading

0 comments on commit fdff32f

Please sign in to comment.