@@ -509,6 +509,7 @@ export KUBE_ADMISSION_CONTROL=${ADMISSION_CONTROL:-}
509
509
510
510
export KUBERNETES_PROVIDER=${KUBERNETES_PROVIDER}
511
511
export PATH=${PATH} :/usr/local/go/bin
512
+ export KUBE_SKIP_UPDATE=y
512
513
export KUBE_SKIP_CONFIRMATIONS=y
513
514
514
515
# E2E Control Variables
@@ -541,45 +542,6 @@ if [[ "${E2E_UP,,}" == "true" || "${JENKINS_FORCE_GET_TARS:-}" =~ ^[yY]$ ]]; the
541
542
exit 1
542
543
fi
543
544
544
- # Tell kube-up.sh to skip the update, it doesn't lock. An internal
545
- # gcloud bug can cause racing component updates to stomp on each
546
- # other.
547
- export KUBE_SKIP_UPDATE=y
548
- (
549
- # ----------- WARNING! DO NOT TOUCH THIS CODE -----------
550
- #
551
- # The purpose of this block is to ensure that only one job attempts to
552
- # update gcloud at a time.
553
- #
554
- # PLEASE DO NOT TOUCH THIS CODE unless you are certain you understand
555
- # implications. Please cc jlowdermilk@ or brendandburns@ on changes.
556
-
557
- # If jenkins was recently restarted and jobs are failing with
558
- #
559
- # flock: 9: Permission denied
560
- #
561
- # ssh into the jenkins master and run
562
- # $ sudo chown jenkins:jenkins /var/run/lock/gcloud-components.lock
563
- #
564
- # Note, flock -n would prevent parallel runs from having to wait
565
- # here, but because we've set -o errexit, the err gets caught
566
- # despite running in a subshell. If a run has to wait, the subsequent
567
- # component update commands will be no-op, so no added delay.
568
- flock -x -w 60 9
569
- # We do NOT want to run gcloud components update under sudo, as that causes
570
- # the gcloud files to get chown'd by root, which makes them undeletable in
571
- # the case where we are installing gcloud under the workspace (e.g. for gke-ci
572
- # and friends). If we can't cleanup old workspaces, jenkins runs out of disk.
573
- #
574
- # If the update commands are failing with permission denied, ssh into
575
- # the jenkins master and run
576
- #
577
- # $ sudo chown -R jenkins:jenkins /usr/local/share/google/google-cloud-sdk
578
- gcloud components update -q || true
579
- gcloud components update alpha -q || true
580
- gcloud components update beta -q || true
581
- ) 9> /var/run/lock/gcloud-components.lock
582
-
583
545
if [[ ! -z ${JENKINS_EXPLICIT_VERSION:- } ]]; then
584
546
# Use an explicit pinned version like "ci/v0.10.0-101-g6c814c4" or
585
547
# "release/v0.19.1"
0 commit comments