mirror of https://github.com/kubernetes/kops.git
Merge pull request #13432 from hakman/go_1.18.0
Use golang 1.18.0 explicitly
This commit is contained in:
commit
5da9488277
|
|
@ -19,7 +19,7 @@ jobs:
|
|||
- name: Set up go
|
||||
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab
|
||||
with:
|
||||
go-version: 1.18
|
||||
go-version: 1.18.0
|
||||
|
||||
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 https://api.github.com/repos/actions/checkout/git/tags/629c2de402a417ea7690ca6ce3f33229e27606a5
|
||||
with:
|
||||
|
|
@ -36,7 +36,7 @@ jobs:
|
|||
- name: Set up go
|
||||
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab
|
||||
with:
|
||||
go-version: 1.18
|
||||
go-version: 1.18.0
|
||||
|
||||
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 https://api.github.com/repos/actions/checkout/git/tags/629c2de402a417ea7690ca6ce3f33229e27606a5
|
||||
with:
|
||||
|
|
@ -53,7 +53,7 @@ jobs:
|
|||
- name: Set up go
|
||||
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab
|
||||
with:
|
||||
go-version: 1.18
|
||||
go-version: 1.18.0
|
||||
|
||||
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 https://api.github.com/repos/actions/checkout/git/tags/629c2de402a417ea7690ca6ce3f33229e27606a5
|
||||
with:
|
||||
|
|
@ -70,7 +70,7 @@ jobs:
|
|||
- name: Set up go
|
||||
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab
|
||||
with:
|
||||
go-version: 1.18
|
||||
go-version: 1.18.0
|
||||
|
||||
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 https://api.github.com/repos/actions/checkout/git/tags/629c2de402a417ea7690ca6ce3f33229e27606a5
|
||||
with:
|
||||
|
|
|
|||
10
Makefile
10
Makefile
|
|
@ -243,13 +243,13 @@ upload: version-dist # Upload kops to S3
|
|||
|
||||
# gcs-upload builds kops and uploads to GCS
|
||||
.PHONY: gcs-upload
|
||||
gcs-upload: version-dist
|
||||
gcs-upload: gsutil version-dist
|
||||
@echo "== Uploading kops =="
|
||||
gsutil -h "Cache-Control:private, max-age=0, no-transform" -m cp -n -r ${UPLOAD}/kops/* ${GCS_LOCATION}
|
||||
|
||||
# gcs-upload-tag runs gcs-upload to upload, then uploads a version-marker to LATEST_FILE
|
||||
.PHONY: gcs-upload-and-tag
|
||||
gcs-upload-and-tag: gcs-upload
|
||||
gcs-upload-and-tag: gsutil gcs-upload
|
||||
echo "${GCS_URL}${VERSION}" > ${BAZELUPLOAD}/latest.txt
|
||||
gsutil -h "Cache-Control:private, max-age=0, no-transform" cp ${BAZELUPLOAD}/latest.txt ${GCS_LOCATION}${LATEST_FILE}
|
||||
|
||||
|
|
@ -292,7 +292,7 @@ bazel-version-ci: bazel-version-dist-linux-amd64 bazel-version-dist-linux-arm64
|
|||
# The last copy part is to satisfy kubetest2 path expectations
|
||||
.PHONY: gcs-publish-ci
|
||||
gcs-publish-ci: VERSION := ${KOPS_CI_VERSION}+${GITSHA}
|
||||
gcs-publish-ci: version-dist-ci
|
||||
gcs-publish-ci: gsutil version-dist-ci
|
||||
@echo "== Uploading kops =="
|
||||
gsutil -h "Cache-Control:private, max-age=0, no-transform" -m cp -n -r ${UPLOAD}/kops/* ${GCS_LOCATION}
|
||||
echo "VERSION: ${VERSION}"
|
||||
|
|
@ -617,6 +617,10 @@ bazel-push-aws-run: bazel-push
|
|||
ssh ${TARGET} chmod +x /tmp/nodeup
|
||||
ssh -t ${TARGET} sudo SKIP_PACKAGE_UPDATE=1 /tmp/nodeup --conf=/opt/kops/conf/kube_env.yaml --v=8
|
||||
|
||||
.PHONY: gsutil
|
||||
gsutil:
|
||||
hack/install-gsutil.sh
|
||||
|
||||
.PHONY: ko
|
||||
ko:
|
||||
hack/install-ko.sh
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ options:
|
|||
machineType: 'N1_HIGHCPU_8'
|
||||
steps:
|
||||
# Push the images
|
||||
- name: 'gcr.io/k8s-staging-test-infra/image-builder:v20220314-46af1b01a6'
|
||||
- name: 'docker.io/library/golang:1.18.0-bullseye'
|
||||
id: images
|
||||
entrypoint: make
|
||||
env:
|
||||
|
|
@ -20,7 +20,7 @@ steps:
|
|||
- dns-controller-push
|
||||
- kube-apiserver-healthcheck-push
|
||||
# Push the artifacts
|
||||
- name: 'gcr.io/k8s-staging-test-infra/image-builder:v20220314-46af1b01a6'
|
||||
- name: 'docker.io/library/golang:1.18.0-bullseye'
|
||||
id: artifacts
|
||||
entrypoint: make
|
||||
env:
|
||||
|
|
@ -35,7 +35,7 @@ steps:
|
|||
args:
|
||||
- gcs-upload-and-tag
|
||||
# Push the manifests
|
||||
#- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90'
|
||||
#- name: 'docker.io/library/golang:1.18.0-bullseye'
|
||||
# id: manifests
|
||||
# waitFor: [images]
|
||||
# entrypoint: make
|
||||
|
|
@ -50,7 +50,7 @@ steps:
|
|||
# - dns-controller-manifest
|
||||
# - kube-apiserver-healthcheck-manifest
|
||||
# Build cloudbuild artifacts (for attestation)
|
||||
- name: 'gcr.io/k8s-staging-test-infra/image-builder:v20220314-46af1b01a6'
|
||||
- name: 'docker.io/library/golang:1.18.0-bullseye'
|
||||
id: cloudbuild-artifacts
|
||||
entrypoint: make
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright 2022 The Kubernetes Authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
if ! command -v gsutil &> /dev/null; then
|
||||
if ! command -v pip3 &> /dev/null; then
|
||||
apt update
|
||||
apt -y install python3-pip
|
||||
fi
|
||||
pip3 install gsutil
|
||||
fi
|
||||
Loading…
Reference in New Issue