Skip to content

Commit b4bc5cb

Browse files
authored
Merge branch 'master' into fix-shellcheck-20190418
2 parents a20aec8 + 75d45bd commit b4bc5cb

File tree

104 files changed

+149
-1014
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+149
-1014
lines changed

OWNERS_ALIASES

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,11 @@ aliases:
359359
# -
360360
# -
361361

362-
# sig-cli-api-reviewers:
363-
# -
364-
# -
365362

363+
sig-cli-api-reviewers:
364+
- pwittrock
365+
- soltysh
366+
366367
sig-cloud-provider-api-reviewers:
367368
- andrewsykim
368369
- cheftako

build/build-image/cross/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# This file creates a standard build environment for building cross
1616
# platform go binary for the architecture kubernetes cares about.
1717

18-
FROM golang:1.12.1
18+
FROM golang:1.12.4
1919

2020
ENV GOARM 7
2121
ENV KUBE_DYNAMIC_CROSSPLATFORMS \

build/build-image/cross/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.12.1-2
1+
v1.12.4-1

build/root/WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ http_archive(
2121

2222
http_archive(
2323
name = "io_bazel_rules_go",
24-
sha256 = "6433336b4c5feb54e2f45df4c1c84ea4385b2dc0b6f274ec2cd5d745045eae1f",
25-
urls = mirror("https://github.com/bazelbuild/rules_go/releases/download/0.17.2/rules_go-0.17.2.tar.gz"),
24+
sha256 = "91b79f4758fd16f2c6426279ce00c1d2d8577d61c519db39675ed84657e1a95e",
25+
urls = mirror("https://github.com/bazelbuild/rules_go/releases/download/0.17.4/rules_go-0.17.4.tar.gz"),
2626
)
2727

2828
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
2929

3030
go_rules_dependencies()
3131

3232
go_register_toolchains(
33-
go_version = "1.12.1",
33+
go_version = "1.12.4",
3434
)
3535

3636
http_archive(

cluster/clientbin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -o errexit
1818
set -o nounset
1919
set -o pipefail
2020

21-
KUBE_ROOT=${KUBE_ROOT:-$(dirname "${BASH_SOURCE}")/..}
21+
KUBE_ROOT=${KUBE_ROOT:-$(dirname "${BASH_SOURCE[0]}")/..}
2222

2323
# Detect the OS name/arch so that we can find our binary
2424
case "$(uname -s)" in

cluster/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ set -o errexit
2020
set -o nounset
2121
set -o pipefail
2222

23-
KUBE_ROOT=$(cd $(dirname "${BASH_SOURCE}")/.. && pwd)
23+
KUBE_ROOT=$(cd $(dirname "${BASH_SOURCE[0]}")/.. && pwd)
2424

2525
DEFAULT_KUBECONFIG="${HOME:-.}/.kube/config"
2626

cluster/gce/gci/mounter/stage-upload.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,30 @@ ACI_DIR=${STAGING_DIR}/gci-mounter
3939
CWD=${PWD}
4040

4141
# Cleanup the temporary directories
42-
function cleanup {
43-
rm -rf ${DOWNLOAD_DIR}
44-
rm -rf ${STAGING_DIR}
45-
cd ${CWD}
42+
cleanup() {
43+
rm -rf "${DOWNLOAD_DIR}"
44+
rm -rf "${STAGING_DIR}"
45+
cd "${CWD}"
4646
}
4747

4848
# Delete temporary directories on exit
4949
trap cleanup EXIT
5050

51-
mkdir ${ACI_DIR}
51+
mkdir "${ACI_DIR}"
5252

5353
# Convert docker image to aci and stage it
5454
echo "Downloading docker2aci ${DOCKER2ACI_VERSION}"
55-
wget "https://github.com/appc/docker2aci/releases/download/${DOCKER2ACI_VERSION}/docker2aci-${DOCKER2ACI_VERSION}.tar.gz" &> /dev/null
55+
wget "https://github.com/appc/docker2aci/releases/download/${DOCKER2ACI_VERSION}/docker2aci-${DOCKER2ACI_VERSION}.tar.gz" >/dev/null 2>&1
5656
echo "Extracting docker2aci ${DOCKER2ACI_VERSION}"
5757
tar xzf docker2aci-${DOCKER2ACI_VERSION}.tar.gz
58-
ACI_IMAGE=$(${DOWNLOAD_DIR}/docker2aci-${DOCKER2ACI_VERSION}/docker2aci ${DOCKER_IMAGE} 2>/dev/null | tail -n 1)
59-
cp ${ACI_IMAGE} ${ACI_DIR}/${MOUNTER_ACI_IMAGE}
58+
ACI_IMAGE=$("${DOWNLOAD_DIR}/docker2aci-${DOCKER2ACI_VERSION}/docker2aci" "${DOCKER_IMAGE}" 2>/dev/null | tail -n 1)
59+
cp "${ACI_IMAGE}" "${ACI_DIR}/${MOUNTER_ACI_IMAGE}"
6060

6161
# Upload the contents to gcs
6262
echo "Uploading gci mounter ACI in ${ACI_DIR} to ${MOUNTER_GCS_DIR}"
63-
gsutil cp ${ACI_DIR}/${MOUNTER_ACI_IMAGE} ${MOUNTER_GCS_DIR}
63+
gsutil cp "${ACI_DIR}/${MOUNTER_ACI_IMAGE}" "${MOUNTER_GCS_DIR}"
6464

6565
echo "Upload completed"
6666
echo "Updated gci-mounter ACI version and SHA1 in cluster/gce/gci/configure.sh"
67-
echo "${MOUNTER_ACI_IMAGE} hash: $(sha1sum ${ACI_DIR}/${MOUNTER_ACI_IMAGE})"
67+
ACI_HASH=$(sha1sum "${ACI_DIR}/${MOUNTER_ACI_IMAGE}")
68+
echo "${MOUNTER_ACI_IMAGE} hash: ${ACI_HASH}"

cluster/log-dump/log-dump.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ readonly max_dump_processes=25
6363

6464
# TODO: Get rid of all the sourcing of bash dependencies eventually.
6565
function setup() {
66-
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
66+
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
6767
if [[ -z "${use_custom_instance_list}" ]]; then
6868
: ${KUBE_CONFIG_FILE:="config-test.sh"}
6969
echo "Sourcing kube-util.sh"

cluster/pre-existing/util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# pre-existing Kubernetes master. See test/kubemark/pre-existing/README.md
1919
# for me details on using a pre-existing provider.
2020

21-
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
21+
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
2222

2323
source "${KUBE_ROOT}/cluster/common.sh"
2424
source "${KUBE_ROOT}/hack/lib/util.sh"

cluster/test-e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ set -o errexit
2121
set -o nounset
2222
set -o pipefail
2323

24-
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
24+
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
2525
source "${KUBE_ROOT}/cluster/kube-util.sh"
2626

2727
echo "Testing cluster with provider: ${KUBERNETES_PROVIDER}" 1>&2

0 commit comments

Comments
 (0)