Skip to content

Commit

Permalink
Merge pull request istio#10843 from hklai/1.1-master
Browse files Browse the repository at this point in the history
Merge release-1.1 into master
  • Loading branch information
hklai authored Jan 10, 2019
2 parents 565aaa9 + e737ab5 commit b8e30e0
Show file tree
Hide file tree
Showing 901 changed files with 36,211 additions and 12,254 deletions.
13 changes: 10 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ jobs:
# Should only happen when re-running a job, and the workspace is gone
time make build test-bins
fi
make docker.all generate_yaml
make docker.all generate_e2e_test_yaml
- run: bin/testEnvRootMinikube.sh wait
- run: docker images
- run:
Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:
# Should only happen when re-running a job, and the workspace is gone
time make build test-bins
fi
make docker.all generate_yaml
make docker.all generate_e2e_test_yaml
- run: bin/testEnvRootMinikube.sh wait
- run: docker images
- run:
Expand Down Expand Up @@ -694,7 +694,7 @@ jobs:

shellcheck:
docker:
- image: koalaman/shellcheck-alpine:v0.5.0
- image: koalaman/shellcheck-alpine:v0.6.0
steps:
- checkout
- run:
Expand Down Expand Up @@ -875,6 +875,9 @@ workflows:
- e2e-simple:
requires:
- build
- e2e-dashboard:
requires:
- build
- racetest:
requires:
- test
Expand All @@ -890,3 +893,7 @@ workflows:
- test-integration-local:
requires:
- build
- test-integration-kubernetes:
requires:
- build

2 changes: 2 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ coverage:
round: up
range: 60..99
ignore:
- "mixer/test"
- "mixer/template"
- "**/*.pb.go" # Auto-generated proto files
- "tests/" # Test infrastructure coverage does not affect core coverage
- "**/test/*.go"
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ install/kubernetes/istio-multicluster.yaml
install/kubernetes/istio-remote.yaml
install/kubernetes/istio-mcp.yaml
install/kubernetes/istio-auth-mcp.yaml
install/kubernetes/helm/istio/requirements.lock
install/kubernetes/helm/istio-remote/requirements.lock
samples/bookinfo/platform/consul/bookinfo.sidecars.yaml
*.orig
# Avoid accidental istio.VERSION changes
Expand All @@ -65,3 +67,5 @@ tests/integration/component/proxy/envoy.conf
# Certs generated by testing
security/cmd/node_agent/na/cert_file
security/cmd/node_agent/na/pkey
# Test artifacts
tests/e2e/local/minikube/docker-machine-driver-hyperkit
24 changes: 11 additions & 13 deletions Gopkg.lock

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

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ ignored = [

[[constraint]]
name = "github.com/prometheus/client_golang"
version = "0.9.0"
version = "0.9.2"

[[constraint]]
branch = "master"
Expand Down
74 changes: 55 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,8 @@ check-tree:
init: check-tree check-go-version $(ISTIO_OUT)/istio_is_init
mkdir -p ${OUT_DIR}/logs

# Sync target will pull from master and sync the modules. It is the first step of the
# circleCI build, developers should call it periodically.
sync: init git.pullmaster

# Merge master. To be used in CI or by developers, assumes the
# remote is called 'origin' (git default). Will fail on conflicts
# Note: in a branch, this will get the latest from master. In master it has no effect.
# This should be run after a 'git fetch' (typically done in the checkout step in CI)
git.pullmaster:
git merge master
# Sync is the same as init in release branch. In master this pulls from master.
sync: init

# I tried to make this dependent on what I thought was the appropriate
# lock file, but it caused the rule for that file to get run (which
Expand Down Expand Up @@ -642,17 +634,29 @@ helm-repo-add:
# create istio-remote.yaml
istio-remote.yaml: $(HELM) $(HOME)/.helm helm-repo-add
cat install/kubernetes/namespace.yaml > install/kubernetes/$@
cat install/kubernetes/helm/istio-init/files/crd-* >> install/kubernetes/$@
$(HELM) dep update --skip-refresh install/kubernetes/helm/istio-remote
$(HELM) template --name=istio --namespace=istio-system \
--set istio_cni.enabled=${ENABLE_ISTIO_CNI} \
${EXTRA_HELM_SETTINGS} \
install/kubernetes/helm/istio-remote >> install/kubernetes/$@

# create istio-remote.yaml
istio-init.yaml: $(HELM) $(HOME)/.helm helm-repo-add
cat install/kubernetes/namespace.yaml > install/kubernetes/$@
cat install/kubernetes/helm/istio-init/files/crd-* >> install/kubernetes/$@
$(HELM) dep update --skip-refresh install/kubernetes/helm/istio-init
$(HELM) template --name=istio --namespace=istio-system \
--set global.tag=${TAG} \
--set global.hub=${HUB} \
install/kubernetes/helm/istio-init >> install/kubernetes/$@

# creates istio.yaml istio-auth.yaml istio-one-namespace.yaml istio-one-namespace-auth.yaml
# Ensure that values-$filename is present in install/kubernetes/helm/istio
isti%.yaml: $(HELM) $(HOME)/.helm helm-repo-add
$(HELM) dep update --skip-refresh install/kubernetes/helm/istio
cat install/kubernetes/namespace.yaml > install/kubernetes/$@
cat install/kubernetes/helm/istio-init/files/crd-* >> install/kubernetes/$@
$(HELM) template --set global.tag=${TAG} \
--name=istio \
--namespace=istio-system \
Expand All @@ -667,6 +671,7 @@ generate_yaml: $(HELM) $(HOME)/.helm helm-repo-add
$(HELM) dep update --skip-refresh install/kubernetes/helm/istio
./install/updateVersion.sh -a ${HUB},${TAG} >/dev/null 2>&1
cat install/kubernetes/namespace.yaml > install/kubernetes/istio.yaml
cat install/kubernetes/helm/istio-init/files/crd-* >> install/kubernetes/istio.yaml
$(HELM) template --set global.tag=${TAG} \
--name=istio \
--namespace=istio-system \
Expand All @@ -678,6 +683,7 @@ generate_yaml: $(HELM) $(HOME)/.helm helm-repo-add
install/kubernetes/helm/istio >> install/kubernetes/istio.yaml

cat install/kubernetes/namespace.yaml > install/kubernetes/istio-auth.yaml
cat install/kubernetes/helm/istio-init/files/crd-* >> install/kubernetes/istio-auth.yaml
$(HELM) template --set global.tag=${TAG} \
--name=istio \
--namespace=istio-system \
Expand All @@ -694,19 +700,14 @@ generate_yaml_coredump: export ENABLE_COREDUMP=true
generate_yaml_coredump:
$(MAKE) generate_yaml

# Generate the install files, using istioctl.
# TODO: make sure they match, pass all tests.
# TODO:
generate_yaml_new: $(HELM) $(HOME)/.helm helm-repo-add
$(HELM) init --client-only
$(HELM) dep update --skip-refresh install/kubernetes/helm/istio
./install/updateVersion.sh -a ${HUB},${TAG} >/dev/null 2>&1
(cd install/kubernetes/helm/istio; ${ISTIO_OUT}/istioctl gen-deploy -o yaml --values values.yaml)

# TODO(sdake) All this copy and paste needs to go. This is easy to wrap up in
# isti%.yaml macro with value files per test scenario. Will handle
# as a followup PR.
generate_e2e_test_yaml: $(HELM) $(HOME)/.helm helm-repo-add
$(HELM) dep update --skip-refresh install/kubernetes/helm/istio
./install/updateVersion.sh -a ${HUB},${TAG} >/dev/null 2>&1
cat install/kubernetes/namespace.yaml > install/kubernetes/istio.yaml
cat install/kubernetes/helm/istio-init/files/crd-* >> install/kubernetes/istio.yaml
$(HELM) template --set global.tag=${TAG} \
--name=istio \
--namespace=istio-system \
Expand All @@ -721,6 +722,7 @@ generate_e2e_test_yaml: $(HELM) $(HOME)/.helm helm-repo-add
install/kubernetes/helm/istio >> install/kubernetes/istio.yaml

cat install/kubernetes/namespace.yaml > install/kubernetes/istio-auth.yaml
cat install/kubernetes/helm/istio-init/files/crd-* >> install/kubernetes/istio-auth.yaml
$(HELM) template --set global.tag=${TAG} \
--name=istio \
--namespace=istio-system \
Expand All @@ -736,6 +738,40 @@ generate_e2e_test_yaml: $(HELM) $(HOME)/.helm helm-repo-add
--values install/kubernetes/helm/istio/values.yaml \
install/kubernetes/helm/istio >> install/kubernetes/istio-auth.yaml

cat install/kubernetes/namespace.yaml > install/kubernetes/istio-non-mcp.yaml
cat install/kubernetes/helm/istio-init/files/crd-* >> install/kubernetes/istio-non-mcp.yaml
$(HELM) template --set global.tag=${TAG} \
--name=istio \
--namespace=istio-system \
--set global.hub=${HUB} \
--set global.proxy.enableCoreDump=${ENABLE_COREDUMP} \
--set global.proxy.concurrency=1 \
--set prometheus.scrapeInterval=1s \
--set gateways.istio-ingressgateway.autoscaleMax=1 \
--set mixer.policy.replicaCount=2 \
--set mixer.policy.autoscaleEnabled=false \
--set global.useMCP=false \
--values install/kubernetes/helm/istio/values.yaml \
install/kubernetes/helm/istio >> install/kubernetes/istio-non-mcp.yaml

cat install/kubernetes/namespace.yaml > install/kubernetes/istio-auth-non-mcp.yaml
cat install/kubernetes/helm/istio-init/files/crd-* >> install/kubernetes/istio-auth-non-mcp.yaml
$(HELM) template --set global.tag=${TAG} \
--name=istio \
--namespace=istio-system \
--set global.hub=${HUB} \
--set global.mtls.enabled=true \
--set prometheus.scrapeInterval=1s \
--set gateways.istio-ingressgateway.autoscaleMax=1 \
--set mixer.policy.replicaCount=2 \
--set mixer.policy.autoscaleEnabled=false \
--set global.controlPlaneSecurityEnabled=true \
--set global.proxy.enableCoreDump=${ENABLE_COREDUMP} \
--set global.proxy.concurrency=1 \
--set global.useMCP=false \
--values install/kubernetes/helm/istio/values.yaml \
install/kubernetes/helm/istio >> install/kubernetes/istio-auth-non-mcp.yaml

# files generated by the default invocation of updateVersion.sh
FILES_TO_CLEAN+=install/consul/istio.yaml \
install/kubernetes/addons/grafana.yaml \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/istio/istio)](https://goreportcard.com/report/github.com/istio/istio)
[![GoDoc](https://godoc.org/istio.io/istio?status.svg)](https://godoc.org/istio.io/istio)
[![codecov.io](https://codecov.io/github/istio/istio/coverage.svg?branch=master)](https://codecov.io/github/istio/istio?branch=master)
[![GolangCI](https://golangci.com/badges/github.com/istio/istio.svg)](https://golangci.com/r/github.com/istio/istio)

An open platform to connect, manage, and secure microservices.

Expand Down
2 changes: 1 addition & 1 deletion addons/servicegraph/promgen/promgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"time"

"github.com/prometheus/client_golang/api"
"github.com/prometheus/client_golang/api/prometheus/v1"
v1 "github.com/prometheus/client_golang/api/prometheus/v1"
"github.com/prometheus/common/model"

"istio.io/istio/addons/servicegraph"
Expand Down
4 changes: 2 additions & 2 deletions bin/codecov_diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if [[ -n "${CIRCLE_PR_NUMBER:-}" ]]; then

go get -u istio.io/test-infra/toolbox/githubctl
BASE_SHA=$("${GOPATH}"/bin/githubctl --token_file="${TMP_GITHUB_TOKEN}" --op=getBaseSHA --repo=istio --pr_num="${CIRCLE_PR_NUMBER}")
git clean -f
git clean -f -d
git checkout "${BASE_SHA}"

cp "${TMP_CODECOV_SH}" ./bin/codecov.sh
Expand All @@ -56,7 +56,7 @@ if [[ -n "${CIRCLE_PR_NUMBER:-}" ]]; then
OUT_DIR="${BASELINE_PATH}" MAXPROCS="${MAXPROCS:-}" CODECOV_SKIP="${CODECOV_SKIP:-}" ./bin/codecov.sh

# Get back to the PR head
git clean -f
git clean -f -d
git checkout "${CIRCLE_SHA1}"

# Test that coverage is not dropped
Expand Down
2 changes: 1 addition & 1 deletion bin/fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ for fl in ${GO_FILES}; do
continue
fi
file_needs_formatting=$($tool $check_args "$fl")
if [[ ! -z "$file_needs_formatting" ]]; then
if [[ -n "$file_needs_formatting" ]]; then
echo "please run bin/fmt.sh against: $file_needs_formatting"
ERR=1
fi
Expand Down
3 changes: 3 additions & 0 deletions bin/get_workspace_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ if [[ -n ${ISTIO_DOCKER_HUB} ]]; then
DOCKER_HUB="${ISTIO_DOCKER_HUB}"
fi

GIT_DESCRIBE_TAG=$(git describe)

# used by bin/gobuild.sh
echo "istio.io/istio/pkg/version.buildVersion=${VERSION}"
echo "istio.io/istio/pkg/version.buildGitRevision=${BUILD_GIT_REVISION}"
echo "istio.io/istio/pkg/version.buildUser=$(whoami)"
echo "istio.io/istio/pkg/version.buildHost=$(hostname -f)"
echo "istio.io/istio/pkg/version.buildDockerHub=${DOCKER_HUB}"
echo "istio.io/istio/pkg/version.buildStatus=${tree_status}"
echo "istio.io/istio/pkg/version.buildTag=${GIT_DESCRIBE_TAG}"
Loading

0 comments on commit b8e30e0

Please sign in to comment.