Skip to content

Add native openapi, grpc, and rest apis support to Istio #368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ depend: vendor binaries
# Generation Rules
#####################

generate: generate-broker-go generate-mesh-go generate-mixer-go generate-routing-go generate-rbac-go generate-authn-go
generate: generate-broker-go generate-mesh-go generate-mixer-go generate-routing-go generate-rbac-go generate-authn-go generate-apis-go

#####################
# broker/...
Expand Down Expand Up @@ -322,6 +322,25 @@ clean-authn-generated:
rm -f $(authn_v1alpha1_pb_doc)


#####################
# apis/...
#####################

apis_v1alpha1_path := apis/v1alpha1
apis_v1alpha1_protos := $(shell find $(apis_v1alpha1_path) -type f -name '*.proto' | sort)
apis_v1alpha1_pb_gos := $(apis_v1alpha1_protos:.proto=.pb.go)
apis_v1alpha1_pb_doc := $(apis_v1alpha1_path)/istio.apis.v1alpha1.pb.html

generate-apis-go: $(apis_v1alpha1_pb_gos) $(apis_v1alpha1_pb_doc)

$(apis_v1alpha1_pb_gos) $(apis_v1alpha1_pb_doc): $(apis_v1alpha1_protos) | depend $(protoc_gen_gogoslick) $(protoc_bin)
## Generate apis/v1alpha1/*.pb.go + $(apis_v1alpha1_pb_doc)
@$(protoc) $(proto_path) $(gogoslick_plugin) $(protoc_gen_docs_plugin)$(apis_v1alpha1_path) $^

clean-apis-generated:
rm -f $(apis_v1alpha1_pb_gos)
rm -f $(apis_v1alpha1_pb_doc)

#####################
# Cleanup
#####################
Expand All @@ -330,4 +349,4 @@ clean:
rm -rf genbin
rm -rf vendor

clean-generated: clean-broker-generated clean-mesh-generated clean-mixer-generated clean-routing-generated clean-rbac-generated clean-authn-generated
clean-generated: clean-broker-generated clean-mesh-generated clean-mixer-generated clean-routing-generated clean-rbac-generated clean-authn-generated clean-apis-generated
Loading