-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: William Findlay <[email protected]>
- Loading branch information
1 parent
1671faa
commit 4016720
Showing
25 changed files
with
5,337 additions
and
4,659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
# Copyright 2017-2020 Authors of Cilium | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# renovate: datasource=docker | ||
BUILDER_IMAGE=quay.io/cilium/cilium-builder@sha256:a2036a3f6420647e6702695dabd2ffa4d2832db45157042d0255bdc707b8e1f2 | ||
GO ?= go | ||
include ../Makefile.defs | ||
|
||
.PHONY: all | ||
all: proto | ||
|
||
.PHONY: proto | ||
proto: v1 | ||
.PHONY: proto-local | ||
proto-local: check-breaking | ||
# $(BUF) format -w | ||
# $(BUF) lint | ||
$(BUF) generate | ||
|
||
.PHONY: check-breaking | ||
check-breaking: | ||
# $(BUF) breaking --against "$(CURDIR)/.git#branch=$(BUF_BREAKING_AGAINST_BRANCH)" | ||
|
||
.PHONY: v1 | ||
v1: | ||
docker container run --rm \ | ||
.PHONY: proto | ||
proto: | ||
$(CONTAINER_ENGINE) container run --rm \ | ||
--volume $(CURDIR)/..:/src \ | ||
--workdir /src/api \ | ||
--user "$(shell id -u):$(shell id -g)" \ | ||
$(BUILDER_IMAGE) \ | ||
make -C /src/api/v1 -f Makefile.protoc | ||
./export-doc.sh ../docs/content/en/docs/reference/grpc-api.md | ||
make -C /src/api proto-local BUF_BREAKING_AGAINST_BRANCH=$(BUF_BREAKING_AGAINST_BRANCH) | ||
|
||
.PHONY: vendor | ||
vendor: | ||
$(GO) mod tidy | ||
$(GO) mod vendor | ||
$(GO) mod verify | ||
$(GO) mod verify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: v2 | ||
plugins: | ||
- local: protoc-gen-go | ||
out: . | ||
opt: | ||
- paths=source_relative | ||
- local: protoc-gen-go-json | ||
out: . | ||
opt: | ||
- paths=source_relative | ||
- orig_name=true | ||
- local: protoc-gen-doc | ||
out: . | ||
opt: | ||
- markdown | ||
- README.md | ||
- source_relative |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: v2 | ||
|
||
modules: | ||
- path: . | ||
excludes: | ||
- vendor | ||
|
||
lint: | ||
use: | ||
# See full list here: https://buf.build/docs/lint/rules/ | ||
- COMMENTS | ||
- STANDARD | ||
disallow_comment_ignores: true | ||
|
||
breaking: | ||
use: | ||
- FILE | ||
# Ignores packages with a last component that's one of the unstable forms | ||
# (e.g. foo.bar.v1alpha foo.bar.v1beta) | ||
ignore_unstable_packages: true |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.