mirror of
https://github.com/coredns/coredns.git
synced 2025-11-09 05:26:21 -05:00
Update client-go to v10.0.0 (Kubernetes 1.13) (#2382)
* Update client-go to v10.0.0 (Kubernetes 1.13) This fix updates client-go to v10.0.0 which matches Kubernetes 1.13 (released several days ago). Other changes in Gopkg.yaml: - Updated apimachinary, api, klog, yaml associated with k8s version go dep will not automatically match the version. - Added [prune] field (otherwise go dep will not prune automatically) Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Updated Gopkg.lock Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Updated vendor for client-go v10.0.0 Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
13
vendor/github.com/DataDog/dd-trace-go/.env
generated
vendored
13
vendor/github.com/DataDog/dd-trace-go/.env
generated
vendored
@@ -1,13 +0,0 @@
|
||||
TEST_REDIS_PORT=56379
|
||||
TEST_ELASTICSEARCH2_PORT=59200
|
||||
TEST_ELASTICSEARCH5_PORT=59201
|
||||
TEST_CASSANDRA_PORT=59042
|
||||
TEST_POSTGRES_PORT=55432
|
||||
TEST_POSTGRES_USER=postgres
|
||||
TEST_POSTGRES_PASSWORD=postgres
|
||||
TEST_POSTGRES_DB=postgres
|
||||
TEST_MYSQL_ROOT_PASSWORD=admin
|
||||
TEST_MYSQL_PASSWORD=test
|
||||
TEST_MYSQL_USER=test
|
||||
TEST_MYSQL_DATABASE=test
|
||||
TEST_MYSQL_PORT=53306
|
||||
12
vendor/github.com/DataDog/dd-trace-go/.gitignore
generated
vendored
12
vendor/github.com/DataDog/dd-trace-go/.gitignore
generated
vendored
@@ -1,12 +0,0 @@
|
||||
# go
|
||||
bin/
|
||||
|
||||
# profiling
|
||||
*.test
|
||||
*.out
|
||||
|
||||
# generic
|
||||
.DS_Store
|
||||
*.cov
|
||||
*.lock
|
||||
*.swp
|
||||
30
vendor/github.com/DataDog/dd-trace-go/Gopkg.toml
generated
vendored
30
vendor/github.com/DataDog/dd-trace-go/Gopkg.toml
generated
vendored
@@ -1,30 +0,0 @@
|
||||
# Gopkg.toml:
|
||||
# this `dep` file is used only to lock Tracer dependencies. It's not meant to be
|
||||
# used by end users so no integrations dependencies must be added here. If you update
|
||||
# or add a new dependency, remember to commit the `vendor` folder. To prepare
|
||||
# your development environment, remember to use `rake init` instead.
|
||||
|
||||
# ignore integrations dependencies
|
||||
ignored = [
|
||||
"github.com/opentracing/*",
|
||||
"github.com/cihub/seelog",
|
||||
"github.com/gin-gonic/gin",
|
||||
"github.com/go-redis/redis",
|
||||
"github.com/go-sql-driver/mysql",
|
||||
"github.com/gocql/gocql",
|
||||
"github.com/gorilla/mux",
|
||||
"github.com/jmoiron/sqlx",
|
||||
"github.com/lib/pq",
|
||||
"google.golang.org/grpc",
|
||||
"gopkg.in/olivere/elastic.v3",
|
||||
"gopkg.in/olivere/elastic.v5",
|
||||
"github.com/stretchr/*",
|
||||
"github.com/garyburd/*",
|
||||
"github.com/golang/*",
|
||||
"google.golang.org/*",
|
||||
"golang.org/x/*",
|
||||
]
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/ugorji/go"
|
||||
revision = "9c7f9b7a2bc3a520f7c7b30b34b7f85f47fe27b6"
|
||||
80
vendor/github.com/DataDog/dd-trace-go/README.md
generated
vendored
80
vendor/github.com/DataDog/dd-trace-go/README.md
generated
vendored
@@ -1,80 +0,0 @@
|
||||
[](https://circleci.com/gh/DataDog/dd-trace-go/tree/master)
|
||||
[](https://godoc.org/github.com/DataDog/dd-trace-go/opentracing)
|
||||
|
||||
Datadog APM client that implements an [OpenTracing](http://opentracing.io) Tracer.
|
||||
|
||||
## Initialization
|
||||
|
||||
To start using the Datadog Tracer with the OpenTracing API, you should first initialize the tracer with a proper `Configuration` object:
|
||||
|
||||
```go
|
||||
import (
|
||||
// ddtrace namespace is suggested
|
||||
ddtrace "github.com/DataDog/dd-trace-go/opentracing"
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// create a Tracer configuration
|
||||
config := ddtrace.NewConfiguration()
|
||||
config.ServiceName = "api-intake"
|
||||
config.AgentHostname = "ddagent.consul.local"
|
||||
|
||||
// initialize a Tracer and ensure a graceful shutdown
|
||||
// using the `closer.Close()`
|
||||
tracer, closer, err := ddtrace.NewTracer(config)
|
||||
if err != nil {
|
||||
// handle the configuration error
|
||||
}
|
||||
defer closer.Close()
|
||||
|
||||
// set the Datadog tracer as a GlobalTracer
|
||||
opentracing.SetGlobalTracer(tracer)
|
||||
startWebServer()
|
||||
}
|
||||
```
|
||||
|
||||
Function `NewTracer(config)` returns an `io.Closer` instance that can be used to gracefully shutdown the `tracer`. It's recommended to always call the `closer.Close()`, otherwise internal buffers are not flushed and you may lose some traces.
|
||||
|
||||
## Usage
|
||||
|
||||
See [Opentracing documentation](https://github.com/opentracing/opentracing-go) for some usage patterns. Legacy documentation is available in [GoDoc format](https://godoc.org/github.com/DataDog/dd-trace-go/tracer).
|
||||
|
||||
## Contributing Quick Start
|
||||
|
||||
Requirements:
|
||||
|
||||
* Go 1.7 or later
|
||||
* Docker
|
||||
* Rake
|
||||
* [gometalinter](https://github.com/alecthomas/gometalinter)
|
||||
|
||||
### Run the tests
|
||||
|
||||
Start the containers defined in `docker-compose.yml` so that integrations can be tested:
|
||||
|
||||
```
|
||||
$ docker-compose up -d
|
||||
$ ./wait-for-services.sh # wait that all services are up and running
|
||||
```
|
||||
|
||||
Fetch package's third-party dependencies (integrations and testing utilities):
|
||||
|
||||
```
|
||||
$ rake init
|
||||
```
|
||||
|
||||
This will only work if your working directory is in $GOPATH/src.
|
||||
|
||||
Now, you can run your tests via :
|
||||
|
||||
```
|
||||
$ rake test:lint # linting via gometalinter
|
||||
$ rake test:all # test the tracer and all integrations
|
||||
$ rake test:race # use the -race flag
|
||||
```
|
||||
|
||||
## Further Reading
|
||||
|
||||
Automatically traced libraries and frameworks: https://godoc.org/github.com/DataDog/dd-trace-go/tracer#pkg-subdirectories
|
||||
Sample code: https://godoc.org/github.com/DataDog/dd-trace-go/tracer#pkg-examples
|
||||
4
vendor/github.com/DataDog/dd-trace-go/Rakefile
generated
vendored
4
vendor/github.com/DataDog/dd-trace-go/Rakefile
generated
vendored
@@ -1,4 +0,0 @@
|
||||
require_relative 'tasks/common'
|
||||
require_relative 'tasks/vendors'
|
||||
require_relative 'tasks/testing'
|
||||
require_relative 'tasks/benchmarks'
|
||||
40
vendor/github.com/DataDog/dd-trace-go/circle.yml
generated
vendored
40
vendor/github.com/DataDog/dd-trace-go/circle.yml
generated
vendored
@@ -1,40 +0,0 @@
|
||||
machine:
|
||||
services:
|
||||
- docker
|
||||
environment:
|
||||
GODIST: "go1.9.linux-amd64.tar.gz"
|
||||
IMPORT_PATH: "/home/ubuntu/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME"
|
||||
post:
|
||||
- mkdir -p download
|
||||
- test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST
|
||||
- sudo rm -rf /usr/local/go
|
||||
- sudo tar -C /usr/local -xzf download/$GODIST
|
||||
|
||||
dependencies:
|
||||
pre:
|
||||
# clean the workspace
|
||||
- rm -Rf /home/ubuntu/.go_workspace/src/*
|
||||
# we should use an old docker-compose because CircleCI supports
|
||||
# only docker-engine==1.9
|
||||
- pip install docker-compose==1.7.1
|
||||
|
||||
override:
|
||||
# put the package in the right $GOPATH
|
||||
- mkdir -p "$IMPORT_PATH"
|
||||
- rsync -azr --delete ./ "$IMPORT_PATH"
|
||||
- cd "$IMPORT_PATH" && rake init
|
||||
|
||||
test:
|
||||
override:
|
||||
# run the agent and backing services
|
||||
- docker-compose up -d | cat
|
||||
# wait for external services and execute tests
|
||||
- cd "$IMPORT_PATH" && ./wait-for-services.sh
|
||||
- cd "$IMPORT_PATH" && rake test:lint
|
||||
- cd "$IMPORT_PATH" && rake test:all
|
||||
- cd "$IMPORT_PATH" && rake test:race
|
||||
- cd "$IMPORT_PATH" && rake test:coverage
|
||||
|
||||
post:
|
||||
# add the coverage HTML report as CircleCI artifact
|
||||
- cd "$IMPORT_PATH" && go tool cover -html=code.cov -o $CIRCLE_ARTIFACTS/coverage.html
|
||||
43
vendor/github.com/DataDog/dd-trace-go/docker-compose.yml
generated
vendored
43
vendor/github.com/DataDog/dd-trace-go/docker-compose.yml
generated
vendored
@@ -1,43 +0,0 @@
|
||||
# File for development/ testing purposes
|
||||
|
||||
cassandra:
|
||||
image: cassandra:3.7
|
||||
ports:
|
||||
- "127.0.0.1:${TEST_CASSANDRA_PORT}:9042"
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=$TEST_MYSQL_ROOT_PASSWORD
|
||||
- MYSQL_PASSWORD=$TEST_MYSQL_PASSWORD
|
||||
- MYSQL_USER=$TEST_MYSQL_USER
|
||||
- MYSQL_DATABASE=$TEST_MYSQL_DATABASE
|
||||
ports:
|
||||
- "127.0.0.1:${TEST_MYSQL_PORT}:3306"
|
||||
postgres:
|
||||
image: postgres:9.5
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=$TEST_POSTGRES_PASSWORD
|
||||
- POSTGRES_USER=$TEST_POSTGRES_USER
|
||||
- POSTGRES_DB=$TEST_POSTGRES_DB
|
||||
ports:
|
||||
- "127.0.0.1:${TEST_POSTGRES_PORT}:5432"
|
||||
redis:
|
||||
image: redis:3.2
|
||||
ports:
|
||||
- "127.0.0.1:${TEST_REDIS_PORT}:6379"
|
||||
elasticsearch-v5:
|
||||
image: elasticsearch:5
|
||||
ports:
|
||||
- "127.0.0.1:${TEST_ELASTICSEARCH5_PORT}:9200"
|
||||
elasticsearch-v2:
|
||||
image: elasticsearch:2
|
||||
ports:
|
||||
- "127.0.0.1:${TEST_ELASTICSEARCH2_PORT}:9200"
|
||||
ddagent:
|
||||
image: datadog/docker-dd-agent
|
||||
environment:
|
||||
- DD_APM_ENABLED=true
|
||||
- DD_BIND_HOST=0.0.0.0
|
||||
- DD_API_KEY=invalid_key_but_this_is_fine
|
||||
ports:
|
||||
- "127.0.0.1:8126:8126"
|
||||
15
vendor/github.com/DataDog/dd-trace-go/wait-for-services.sh
generated
vendored
15
vendor/github.com/DataDog/dd-trace-go/wait-for-services.sh
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
N=0
|
||||
MAX_RETRY=10
|
||||
|
||||
docker ps --no-trunc
|
||||
|
||||
until [ $N -ge $MAX_RETRY ]
|
||||
do
|
||||
TIMES=$[$N+1]
|
||||
echo "Contacting ElasticSearch... $TIMES/$MAX_RETRY"
|
||||
curl -XGET 'localhost:59200' && break
|
||||
N=$[$N+1]
|
||||
sleep 15
|
||||
done
|
||||
Reference in New Issue
Block a user