Commit Graph

32 Commits

Author SHA1 Message Date
John Howard f9846b4f41
Update mesh config to not import k8s libraries (#3154)
* Update mesh config to not import k8s libraries

* drop optional

* fix repeated

* gen
2024-05-20 11:56:31 -04:00
John Howard b9c26acf91
Generate alias for types instead of copies (#3188) 2024-05-20 11:48:31 -04:00
Joao Grassi 93844c1f49
Fix cloned path in breaking task check (#3115) 2024-03-11 08:47:24 -07:00
John Howard f465f2d18d
tooling: replace protolock with `buf breaking` (#3101) 2024-02-27 22:50:03 -08:00
AndreaM12345 f8ef33f530
fixes for Duplicate reference docs overwriting each other (#2811)
* change page

* changes for docs to sync the needed ones

* fix tabset error

* fix spacing issue

* add checks to sync.sh to ensure mode is set

* fix changes from merge

* fix missing tabset

* fix tabset again
2023-06-22 06:41:07 -07:00
John Howard 72aa7f8e98
Validate and fix all samples (#2413)
* Fix broken samples

* run make gen
2022-07-12 19:08:17 -07:00
John Howard 773205214e
Remove releaselocks/ (#2288)
We currently have two redundant ways to test for breaking changes in
proto: proto-commit and releaselocks. These do the same thing, but add
substantial noise.

Release locks have also not been updated since 1.6.

The original intent was to test for breaking changes between versions.
However, since we test for breaking changes on each commit, there is no
need for the extra check; if it would have failed as "breaking change
from 1.0 -> HEAD" then it would also fail with "breaking change from
HEAD^ -> HEAD".

Finally, there are some weird LC_ALL issues with sorting that make the
releaselocks really hard to use, especially for newcomers. I spent hours
trying to fix it without success
2022-03-17 15:29:43 -07:00
John Howard e6bb02d631
operator: use camelCase (#2286)
* operator: use camelCase

operator relies on merging using K8s libraries. K8s libraries use the
`json` tag. protobuf doesn't have a way to configure this (`json_tag` is
for `protobuf.json`, not `json`) and never will.

JSON tag comes from the protobuf name. So we can make it camelCase to
fix the above issue. This will have no impact on unmarshalling with jsonpb -- which we use in
all cases aside from the merging -- any casing is allowed.

This may be a breaking change in the protobuf sense (but NOT to Istio
users), but it doesn't really matter as until last week the operator
protobuf was not a real protobuf at all and relied on `sed` to make it
into the shape we want. Therefor, its not possible someone depended on
the operator protobuf being protobuf-compatible.

* add comment

* gen

* extra line

* comment

* gen
2022-03-17 10:47:52 -07:00
John Howard 3297f46868
Update common (#2263)
* Update common

* lint

* release locks

* fix LC_ALL
2022-03-03 16:01:52 -08:00
John Howard 88e56fb49a
Add tooling to automatically sync proto versions (#2021)
* Add script to sync protobuf versions

* Updates to protobuf files

* Update generated code

* Fix release locks
2021-07-01 11:52:09 -07:00
John Howard 6e9e4699ed
Validate api docs, and fix issues (#1885)
* Fix invalid examples and alpha/beta discrepencies

* gen

* license

* lint

* missing space

* gen
2021-02-17 09:30:48 -08:00
Jason Wang 87380418ee
Update CRDs to v1 (#1495)
* Add script to check schema equality

* Update CRDs to v1

* Update makefile
2020-07-06 10:32:40 -07:00
Martin Taillefer 67e00885e3
Add a gen-check target. (#1113)
- New common target to check that a repo is clean wrt generated files.
2019-10-02 09:51:41 -07:00
Martin Taillefer 03ce488f22
Fix logic to test if 'make' hasn't been run. (#1111) 2019-10-01 07:53:07 -07:00
Martin Taillefer d5a84f4eac
Enable all linters on this repo. (#1077)
* Enable all linters on this repo.

- Fix a few linting errors.
2019-09-09 10:31:28 -07:00
Martin Taillefer 1c58b135ae
Update common files. (#1055)
- Fix some broken dependency tracking.

- Remove a superfluous proto import to get rid of a warning.

- Explicitly select an older build-tools container version, since
the current one has some problems building the protos.
2019-08-26 09:57:37 -07:00
Martin Taillefer 9dc74657c5
Update common files. (#1050)
This introduces a new protoc compiler, which affects the python code
gen a bit.
2019-08-21 19:43:58 -07:00
Martin Taillefer 502840cb63
Update the common files. (#1020) 2019-08-06 07:54:02 -07:00
Martin Taillefer 875defe302
Update common files. (#950) 2019-06-17 09:35:24 -07:00
Martin Taillefer e349b364e0
Import common files into this repo (#935)
- Delete circleci config as its completely redundant with what prow is doing.

- Delete other cruft.
2019-05-30 20:36:13 -07:00
Jeff Mendoza 4ea7534227 Setup CI to test for incompatible changes against 1.0 and 1.1 (#707)
* Test for incompatible changes against existing releases.

Add Makefile target to test curent protos against proto.lock files
from previous releases.

* Review comments.
2019-03-12 11:01:35 -07:00
Michal Rostecki 4eeb69c9eb bazel: Allow to distdir all dependencies (#702)
To use --distdir option of Bazel (which allows to use previously
fetched tarballs instead of downloading dependencies during
build), all dependencies should use http instead of git and need
to have sha256 sums specified.

Signed-off-by: Michal Rostecki <mrostecki@suse.de>
2018-11-14 08:17:04 -08:00
Jeff Mendoza d2dcf0047f Add prototool for linting, precommit, Circle, Prow. (#685) 2018-10-31 17:07:12 -07:00
Jeff Mendoza 011906d92f Add Protolock. (#675)
* Add Protolock.

Move the protoc docker files to tools/protoc. Add docker files for
protolock image. Update Makefile precommit hook and prow presubmit
check to run protolock.

* Add combined image to be used on CircleCI

* Update proto.lock for policy_check_fail_open in mesh config.

* Updade circle config.
2018-10-30 20:34:10 -07:00
Douglas Reid 6a051571ac
Switch to docker-based generation for pb.gos and docs. (#399) 2018-03-12 14:59:25 -07:00
Douglas Reid e8d85c7472 Fix build script for generation (#396)
* Fix generation script

* resolve conflicts

* Pin gofmt and update scripts

* Revert "Pin gofmt and update scripts"

This reverts commit aa0a0787e9.

* Attempting to fix circleci vendor issue

* Living dangerously

* Living dangerously 2

* Living dangerously 3

* fixing protoc issue

* update circleci to go1.10
2018-02-28 19:45:54 -08:00
Shriram Rajagopalan 0a387cd5a5
Circleci tweaks and remove unnecessary bazel build in presubmit (#287)
* circleci config

* nits

* updates

* no bazel build

* test

* undo test
2018-01-08 18:03:31 -05:00
Douglas Reid 881baa18b3
Install protoc if not found on system (#279)
* Echo out protoc version

* Add protoc install bits to Makefile

* Get at least protoc 3.5

* Remove problematic bazel conflict files

* don't obscure the copying of generated files

* Attempt to debug differences

* Update generated proto files to match changes here
2018-01-02 15:15:12 -08:00
Douglas Reid b08011c721
Add Makefile for mixer/v1 proto generation (#277)
This PR removes the mixer/v1 bazel code for protoc-based generation, replacing it that logic with a Makefile.

Notes:

- generate-protos.sh is updated to call make targets
- all BUILD files were rewritten with gazelle to supply default targets around the generated files
- each of the .proto files is touched, as it is regenerated as part of this PR
2017-12-20 19:17:05 -08:00
Kuat 48214571cf
Remove redundant file (#255)
Signed-off-by: Kuat Yessenov <kuat@google.com>
2017-11-21 22:01:29 -08:00
Zack Butcher 93fc167380
add a pre-commit script that generates pb.go files from our protos (#250) 2017-11-21 10:44:36 -08:00
Jason Young 4db1d092a4
Add scripts to auto-generate protobuf golang code (#233)
This is mostly copied over from istio.io/istio/mixer/ with tweaks to
adjust the paths so that *.pb.go files appears alongside the *.proto
files.
2017-11-13 08:53:44 -08:00