Skip to content

Commit

Permalink
Regenerate generated code. (#15917)
Browse files Browse the repository at this point in the history
- Migrate code gen to use latest tools container.

- Stop using the go_generate_dependencies docker image, use the canonical build tools
image instead.
  • Loading branch information
geeknoid committed Jul 31, 2019
1 parent bc43260 commit 6d1ce77
Show file tree
Hide file tree
Showing 202 changed files with 1,605 additions and 1,490 deletions.
2 changes: 1 addition & 1 deletion .commonfiles.sha
@@ -1 +1 @@
0ffcb226039323b7f5b9deb4d34de5193c372537
2b4f0140d1f92b29a95fd8e9967b3c4fac4bc548
2 changes: 1 addition & 1 deletion bin/counterfeiter.sh
Expand Up @@ -22,7 +22,7 @@ if [ "$ROOTDIR" != "${GOPATH-$HOME/go}/src/istio.io/istio" ]; then
die "Istio not found in GOPATH/src/istio.io/"
fi

gen_img=gcr.io/istio-testing/go_generate_dependency:2018-07-26
gen_img=gcr.io/istio-testing/api-build-tools:2019-07-30

docker run -i --volume /var/run/docker.sock:/var/run/docker.sock \
-e "GOPATH=/go:$GOPATH" --rm --entrypoint counterfeiter -v "$ROOTDIR:$ROOTDIR" -w "$(pwd)" $gen_img "$@"
28 changes: 0 additions & 28 deletions bin/go-bindata.sh

This file was deleted.

2 changes: 1 addition & 1 deletion bin/protoc.sh
Expand Up @@ -27,7 +27,7 @@ if [ "$ROOTDIR" != "${GOPATH-$HOME/go}/src/istio.io/istio" ]; then
die "Istio not found in GOPATH/src/istio.io/"
fi

gen_img=gcr.io/istio-testing/protoc:2019-03-29
gen_img=gcr.io/istio-testing/api-build-tools:2019-07-30

docker run -i --volume /var/run/docker.sock:/var/run/docker.sock \
--rm --entrypoint /usr/bin/protoc -v "$ROOTDIR:$ROOTDIR" -w "$(pwd)" $gen_img "$@"
15 changes: 0 additions & 15 deletions docker/Dockerfile.go_generate_dependency

This file was deleted.

15 changes: 0 additions & 15 deletions docker/build_and_push_go_generate_dependency.sh

This file was deleted.

2 changes: 1 addition & 1 deletion galley/pkg/config/processor/metadata/gen.go
Expand Up @@ -16,7 +16,7 @@ package metadata

// TODO: Switch go-bindata to be scripts/run_gobindata.sh
// Embed the core metadata file containing the collections as a resource
//go:generate go-bindata --nocompress --nometadata --pkg metadata -o metadata.gen.go metadata.yaml
//go:generate $GOPATH/src/istio.io/istio/scripts/run_gobindata.sh --nocompress --nometadata --pkg metadata -o metadata.gen.go metadata.yaml

// Create static initializers file
//go:generate go run $GOPATH/src/istio.io/istio/galley/pkg/config/schema/codegen/tools/staticinit.main.go metadata metadata.yaml staticinit.gen.go
Expand Down
2 changes: 1 addition & 1 deletion galley/pkg/config/testing/basicmeta/gen.go
Expand Up @@ -15,7 +15,7 @@
package basicmeta

// Embed the core metadata file containing the collections as a resource
//go:generate go-bindata --nocompress --nometadata --pkg basicmeta -o basicmeta.gen.go basicmeta.yaml basicmeta2.yaml
//go:generate $GOPATH/src/istio.io/istio/scripts/run_gobindata.sh --nocompress --nometadata --pkg basicmeta -o basicmeta.gen.go basicmeta.yaml basicmeta2.yaml

// Create static initializers file
//go:generate go run $GOPATH/src/istio.io/istio/galley/pkg/config/schema/codegen/tools/staticinit.main.go basicmeta basicmeta.yaml staticinit.gen.go
Expand Down
25 changes: 13 additions & 12 deletions galley/pkg/config/testing/data/builtin.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion galley/pkg/config/testing/data/builtin.go
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

// Embed the core metadata file containing the collections as a resource
//go:generate go-bindata --nocompress --nometadata --pkg data -o builtin.gen.go builtin/
//go:generate $GOPATH/src/istio.io/istio/scripts/run_gobindata.sh --nocompress --nometadata --pkg data -o builtin.gen.go builtin/

package data

Expand Down
2 changes: 1 addition & 1 deletion galley/pkg/config/testing/data/builtin/get.go
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

// Embed the core metadata file containing the collections as a resource
//go:generate go-bindata --nocompress --nometadata --pkg builtin -o builtin.gen.go testdata/
//go:generate $GOPATH/src/istio.io/istio/scripts/run_gobindata.sh --nocompress --nometadata --pkg builtin -o builtin.gen.go testdata/

package builtin

Expand Down
2 changes: 1 addition & 1 deletion galley/pkg/config/testing/k8smeta/gen.go
Expand Up @@ -15,7 +15,7 @@
package k8smeta

// Embed the core metadata file containing the collections as a resource
//go:generate go-bindata --nocompress --nometadata --pkg k8smeta -o k8smeta.gen.go k8smeta.yaml
//go:generate $GOPATH/src/istio.io/istio/scripts/run_gobindata.sh --nocompress --nometadata --pkg k8smeta -o k8smeta.gen.go k8smeta.yaml

// Create static initializers file
//go:generate go run $GOPATH/src/istio.io/istio/galley/pkg/config/schema/codegen/tools/staticinit.main.go k8smeta k8smeta.yaml staticinit.gen.go
Expand Down
2 changes: 1 addition & 1 deletion galley/testdata/conversion/dataset.go
Expand Up @@ -14,4 +14,4 @@

package conversion

//go:generate $GOPATH/src/istio.io/istio/bin/go-bindata.sh --nocompress --nometadata --pkg conversion -o dataset.gen.go dataset/...
//go:generate $GOPATH/src/istio.io/istio/scripts/run_gobindata.sh --nocompress --nometadata --pkg conversion -o dataset.gen.go dataset/...
2 changes: 1 addition & 1 deletion galley/testdata/validation/dataset.go
Expand Up @@ -14,5 +14,5 @@

package validation

//go:generate $GOPATH/src/istio.io/istio/bin/go-bindata.sh --nocompress --nometadata --pkg validation -o dataset.gen.go dataset/...
//go:generate $GOPATH/src/istio.io/istio/scripts/run_gobindata.sh --nocompress --nometadata --pkg validation -o dataset.gen.go dataset/...
//go:generate goimports -w dataset.gen.go
2 changes: 1 addition & 1 deletion mixer/adapter/bypass/config/bypass.yaml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions mixer/adapter/bypass/config/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified mixer/adapter/bypass/config/config.proto_descriptor
Binary file not shown.
2 changes: 1 addition & 1 deletion mixer/adapter/circonus/config/circonus.yaml

Large diffs are not rendered by default.

15 changes: 5 additions & 10 deletions mixer/adapter/circonus/config/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified mixer/adapter/circonus/config/config.proto_descriptor
Binary file not shown.

0 comments on commit 6d1ce77

Please sign in to comment.