Update COVERAGE sed to latest daemonset which has nonempty env

This commit is contained in:
Bryan Boreham committed 2017-06-12 13:55:21 +00:00
1 parent 2ddb8fcec3
commit 31a4657467
1 file changed
+2 -2
+2 -2
View File
@@ -41,12 +41,12 @@ done
if [ -n "$COVERAGE" ]; then
COVERAGE_ARGS="env:\\n - name: EXTRA_ARGS\\n value: \"-test.coverprofile=/home/weave/cover.prof --\""
else
COVERAGE_ARGS="env: []"
COVERAGE_ARGS="env:"
fi
# Ensure Kubernetes uses locally built container images and inject code coverage environment variable (or do nothing depending on $COVERAGE):
sed -e "s%imagePullPolicy: Always%imagePullPolicy: Never%" \
-e "s%env: \[\]%$COVERAGE_ARGS%" \
-e "s%env:%$COVERAGE_ARGS%" \
"$(dirname "$0")/../prog/weave-kube/weave-daemonset-k8s-1.6.yaml" | run_on "$HOST1" "$KUBECTL apply -n kube-system -f -"
sleep 5