mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-07 02:07:58 +00:00
Add vendor folder to git
This commit is contained in:
parent
66cf5eaafb
commit
183585f56f
6916 changed files with 2629581 additions and 1 deletions
62
vendor/github.com/googleapis/gnostic/extensions/sample/INSTALL.sh
generated
vendored
Normal file
62
vendor/github.com/googleapis/gnostic/extensions/sample/INSTALL.sh
generated
vendored
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
go get github.com/golang/protobuf/protoc-gen-go
|
||||
|
||||
|
||||
# ONE TIME
|
||||
#
|
||||
#
|
||||
|
||||
############################# FOR E2E TESTING ########################################
|
||||
# ensure vendorextension proto contract is compiled.
|
||||
pushd $GOPATH/src/github.com/googleapis/gnostic/extensions
|
||||
./COMPILE-EXTENSION.sh
|
||||
popd
|
||||
|
||||
pushd $GOPATH/src/github.com/googleapis/gnostic/generator
|
||||
./INSTALL.sh
|
||||
|
||||
pushd $GOPATH/src/github.com/googleapis/gnostic
|
||||
go install
|
||||
|
||||
|
||||
######################################################################################
|
||||
|
||||
|
||||
|
||||
# Now generate sample extension plugins and install them.
|
||||
#
|
||||
#
|
||||
pushd $GOPATH/src/github.com/googleapis/gnostic/extensions
|
||||
|
||||
EXTENSION_OUT_DIR=$GOPATH/src/"github.com/googleapis/gnostic/extensions/sample/generated"
|
||||
# For SAMPLE_ONE Extension Example
|
||||
#
|
||||
#
|
||||
SAMPLE_ONE_EXTENSION_SCHEMA="sample/x-samplecompanyone.json"
|
||||
|
||||
generator --extension $SAMPLE_ONE_EXTENSION_SCHEMA --out_dir=$EXTENSION_OUT_DIR
|
||||
|
||||
pushd $EXTENSION_OUT_DIR/openapi_extensions_samplecompanyone/proto
|
||||
protoc --go_out=Mgoogle/protobuf/any.proto=github.com/golang/protobuf/ptypes/any:. *.proto
|
||||
go install
|
||||
popd
|
||||
|
||||
pushd $EXTENSION_OUT_DIR/openapi_extensions_samplecompanyone
|
||||
go install
|
||||
popd
|
||||
|
||||
# For SAMPLE_TWO Extension Example
|
||||
#
|
||||
#
|
||||
SAMPLE_TWO_EXTENSION_SCHEMA="sample/x-samplecompanytwo.json"
|
||||
|
||||
generator --extension $SAMPLE_TWO_EXTENSION_SCHEMA --out_dir=$EXTENSION_OUT_DIR
|
||||
|
||||
pushd $EXTENSION_OUT_DIR/openapi_extensions_samplecompanytwo/proto
|
||||
protoc --go_out=Mgoogle/protobuf/any.proto=github.com/golang/protobuf/ptypes/any:. *.proto
|
||||
go install
|
||||
popd
|
||||
|
||||
pushd $EXTENSION_OUT_DIR/openapi_extensions_samplecompanytwo
|
||||
go install
|
||||
popd
|
||||
popd
|
||||
Loading…
Add table
Add a link
Reference in a new issue