Skip to content

Commit ffa742d

Browse files
authored
Add proto for authentication policy. (#361)
1 parent 1e0c1e6 commit ffa742d

File tree

4 files changed

+1079
-2
lines changed

4 files changed

+1079
-2
lines changed

Makefile

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ depend: vendor binaries
145145
# Generation Rules
146146
#####################
147147

148-
generate: generate-broker-go generate-mesh-go generate-mixer-go generate-routing-go generate-rbac-go
148+
generate: generate-broker-go generate-mesh-go generate-mixer-go generate-routing-go generate-rbac-go generate-authn-go
149149

150150
#####################
151151
# broker/...
@@ -301,6 +301,27 @@ clean-rbac-generated:
301301
rm -f $(rbac_v1alpha1_pb_gos)
302302
rm -f $(rbac_v1alpha1_pb_doc)
303303

304+
305+
#####################
306+
# authentication/...
307+
#####################
308+
309+
authn_v1alpha1_path := authentication/v1alpha1
310+
authn_v1alpha1_protos := $(shell find $(authn_v1alpha1_path) -type f -name '*.proto' | sort)
311+
authn_v1alpha1_pb_gos := $(authn_v1alpha1_protos:.proto=.pb.go)
312+
authn_v1alpha1_pb_doc := $(authn_v1alpha1_path)/istio.authentication.v1alpha1.pb.html
313+
314+
generate-authn-go: $(authn_v1alpha1_pb_gos) $(authn_v1alpha1_pb_doc)
315+
316+
$(authn_v1alpha1_pb_gos) $(authn_v1alpha1_pb_doc): $(authn_v1alpha1_protos) | depend $(protoc_gen_go) $(protoc_bin)
317+
## Generate authentication/v1alpha1/*.pb.go
318+
$(protoc) $(proto_path) $(protoc_gen_go_plugin) $(protoc_gen_docs_plugin)$(authn_v1alpha1_path) $^
319+
320+
clean-authn-generated:
321+
rm -f $(authn_v1alpha1_pb_gos)
322+
rm -f $(authn_v1alpha1_pb_doc)
323+
324+
304325
#####################
305326
# Cleanup
306327
#####################
@@ -309,4 +330,4 @@ clean:
309330
rm -rf genbin
310331
rm -rf vendor
311332

312-
clean-generated: clean-broker-generated clean-mesh-generated clean-mixer-generated clean-routing-generated clean-rbac-generated
333+
clean-generated: clean-broker-generated clean-mesh-generated clean-mixer-generated clean-routing-generated clean-rbac-generated clean-authn-generated

0 commit comments

Comments
 (0)