Skip to content

Commit

Permalink
Merge pull request #20960 from andyzheng0831/fix
Browse files Browse the repository at this point in the history
Auto commit by PR queue bot
  • Loading branch information
k8s-merge-robot committed Feb 11, 2016
2 parents 4ac6948 + 126f3c4 commit 798b88e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
7 changes: 5 additions & 2 deletions cluster/gce/trusty/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,11 @@ script
fi
# Assemble command line flags based on env variables.
ARGS="--v=2"
if [ -n "${KUBELET_TEST_LOG_LEVEL:-}" ]; then
ARGS="${KUBELET_TEST_LOG_LEVEL}"
fi
if [ -n "${KUBELET_TEST_ARGS:-}" ]; then
ARGS="${KUBELET_TEST_ARGS}"
ARGS="${ARGS} ${KUBELET_TEST_ARGS}"
fi
if [ ! -z "${KUBELET_APISERVER:-}" ] && [ ! -z "${KUBELET_CERT:-}" ] && [ ! -z "${KUBELET_KEY:-}" ]; then
ARGS="${ARGS} --api-servers=https://${KUBELET_APISERVER}"
Expand All @@ -155,7 +158,7 @@ script
--cgroup-root=/ \
--system-container=/system \
--nosystemd=true \
${ARGS}
${ARGS} 1>>/var/log/kubelet.log 2>&1
end script

# Wait for 10s to start kubelet again.
Expand Down
14 changes: 9 additions & 5 deletions cluster/gce/trusty/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,11 @@ script

. /etc/kube-env
ARGS="--v=2"
if [ -n "${KUBELET_TEST_LOG_LEVEL:-}" ]; then
ARGS="${KUBELET_TEST_LOG_LEVEL}"
fi
if [ -n "${KUBELET_TEST_ARGS:-}" ]; then
ARGS="${KUBELET_TEST_ARGS}"
ARGS="${ARGS} ${KUBELET_TEST_ARGS}"
fi
BINARY_PATH="/usr/bin/kubelet"
if [ "${TEST_CLUSTER:-}" = "true" ]; then
Expand All @@ -140,7 +143,7 @@ script
--cgroup-root=/ \
--system-container=/system \
--nosystemd=true \
${ARGS}
${ARGS} 1>>/var/log/kubelet.log 2>&1
end script

# Wait for 10s to start kubelet again.
Expand Down Expand Up @@ -206,11 +209,12 @@ script
fi
kube_proxy_docker_tag=$(cat /run/kube-docker-files/kube-proxy.docker_tag)
test_args=""
log_level="--v=2"
if [ -n "${KUBEPROXY_TEST_ARGS:-}" ]; then
test_args="${KUBEPROXY_TEST_ARGS}"
# test_args should already contain log level setting.
log_level=""
fi
log_level="--v=2"
if [ -n "${KUBEPROXY_TEST_LOG_LEVEL:-}" ]; then
log_level="${KUBEPROXY_TEST_LOG_LEVEL}"
fi
api_servers="--master=https:\/\/${KUBERNETES_MASTER_NAME}"
sed -i -e "s/{{kubeconfig}}/${kubeconfig}/g" ${tmp_file}
Expand Down

0 comments on commit 798b88e

Please sign in to comment.