Skip to content

Commit

Permalink
Merge pull request #39 from pohly/prow-update-master
Browse files Browse the repository at this point in the history
master: update release-tools + dependencies
  • Loading branch information
k8s-ci-robot authored Mar 23, 2021
2 parents 3cba7a3 + fda2cc7 commit 4172954
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 61 deletions.
1 change: 0 additions & 1 deletion .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubernetes-csi/csi-driver-iscsi

go 1.13
go 1.16

require (
github.com/container-storage-interface/spec v1.2.0
Expand Down
26 changes: 0 additions & 26 deletions go.sum

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion release-tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ The expected repository layout is:
Dockerfile in the root when only building a single command
- `Makefile` - includes `release-tools/build.make` and sets
configuration variables
- `.travis.yml` - a symlink to `release-tools/.travis.yml`
- `.prow.sh` script which imports `release-tools/prow.sh`
and may contain further customization
- `.cloudbuild.sh` and `cloudbuild.yaml` as symlinks to
the corresponding files in `release-tools` or (if necessary)
as custom files

To create a release, tag a certain revision with a name that
starts with `v`, for example `v1.0.0`, then `make push`
Expand Down
1 change: 1 addition & 0 deletions release-tools/build.make
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ $(CMDS:%=push-multiarch-%): push-multiarch-%: check-pull-base-ref build-%
--platform=$$os/$$arch \
--file $$(eval echo \$${dockerfile_$$os}) \
--build-arg binary=./bin/$*$$suffix \
--build-arg ARCH=$$arch \
--label revision=$(REV) \
.; \
done; \
Expand Down
2 changes: 1 addition & 1 deletion release-tools/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ options:
substitution_option: ALLOW_LOOSE
steps:
# The image must contain bash and curl. Ideally it should also contain
# the desired version of Go (currently defined in release-tools/travis.yml),
# the desired version of Go (currently defined in release-tools/prow.sh),
# but that just speeds up the build and is not required.
- name: 'gcr.io/k8s-testimages/gcb-docker-gcloud:v20200421-a2bf5f8'
entrypoint: ./.cloudbuild.sh
Expand Down
9 changes: 1 addition & 8 deletions release-tools/prow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,7 @@ configvar CSI_PROW_BUILD_PLATFORMS "linux amd64; windows amd64 .exe; linux ppc64
# which is disabled with GOFLAGS=-mod=vendor).
configvar GOFLAGS_VENDOR "$( [ -d vendor ] && echo '-mod=vendor' )" "Go flags for using the vendor directory"

# Go versions can be specified separately for different tasks
# If the pre-installed Go is missing or a different
# version, the required version here will get installed
# from https://golang.org/dl/.
go_from_travis_yml () {
grep "^ *- go:" "${RELEASE_TOOLS_ROOT}/travis.yml" | sed -e 's/.*go: *//'
}
configvar CSI_PROW_GO_VERSION_BUILD "$(go_from_travis_yml)" "Go version for building the component" # depends on component's source code
configvar CSI_PROW_GO_VERSION_BUILD "1.16" "Go version for building the component" # depends on component's source code
configvar CSI_PROW_GO_VERSION_E2E "" "override Go version for building the Kubernetes E2E test suite" # normally doesn't need to be set, see install_e2e
configvar CSI_PROW_GO_VERSION_SANITY "${CSI_PROW_GO_VERSION_BUILD}" "Go version for building the csi-sanity test suite" # depends on CSI_PROW_SANITY settings below
configvar CSI_PROW_GO_VERSION_KIND "${CSI_PROW_GO_VERSION_BUILD}" "Go version for building 'kind'" # depends on CSI_PROW_KIND_VERSION below
Expand Down
21 changes: 0 additions & 21 deletions release-tools/travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions release-tools/verify-go-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ die () {
version=$("$GO" version) || die "determining version of $GO failed"
# shellcheck disable=SC2001
majorminor=$(echo "$version" | sed -e 's/.*go\([0-9]*\)\.\([0-9]*\).*/\1.\2/')
# shellcheck disable=SC2001
expected=$(grep "^ *- go:" "release-tools/travis.yml" | sed -e 's/.*go: *\([0-9]*\)\.\([0-9]*\).*/\1.\2/')
# SC1091: Not following: release-tools/prow.sh was not specified as input (see shellcheck -x).
# shellcheck disable=SC1091
expected=$(. release-tools/prow.sh >/dev/null && echo "$CSI_PROW_GO_VERSION_BUILD")

if [ "$majorminor" != "$expected" ]; then
cat >&2 <<EOF
Expand Down
35 changes: 35 additions & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ github.com/blang/semver
# github.com/cespare/xxhash/v2 v2.1.1
github.com/cespare/xxhash/v2
# github.com/container-storage-interface/spec v1.2.0
## explicit
github.com/container-storage-interface/spec/lib/go/csi
# github.com/davecgh/go-spew v1.1.1
github.com/davecgh/go-spew/spew
Expand Down Expand Up @@ -46,15 +47,19 @@ github.com/inconshreveable/mousetrap
# github.com/json-iterator/go v1.1.10
github.com/json-iterator/go
# github.com/kubernetes-csi/csi-lib-iscsi v0.0.0-20190415173011-c545557492f4
## explicit
github.com/kubernetes-csi/csi-lib-iscsi/iscsi
# github.com/kubernetes-csi/csi-lib-utils v0.2.0
## explicit
github.com/kubernetes-csi/csi-lib-utils/protosanitizer
# github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369
github.com/matttproud/golang_protobuf_extensions/pbutil
# github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
github.com/modern-go/concurrent
# github.com/modern-go/reflect2 v1.0.1
github.com/modern-go/reflect2
# github.com/onsi/gomega v1.8.1
## explicit
# github.com/prometheus/client_golang v1.7.1
github.com/prometheus/client_golang/prometheus
github.com/prometheus/client_golang/prometheus/internal
Expand All @@ -70,12 +75,14 @@ github.com/prometheus/procfs
github.com/prometheus/procfs/internal/fs
github.com/prometheus/procfs/internal/util
# github.com/spf13/cobra v1.0.0
## explicit
github.com/spf13/cobra
# github.com/spf13/pflag v1.0.5
github.com/spf13/pflag
# golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
golang.org/x/crypto/ssh/terminal
# golang.org/x/net v0.0.0-20200707034311-ab3426394381
## explicit
golang.org/x/net/context
golang.org/x/net/context/ctxhttp
golang.org/x/net/http/httpguts
Expand Down Expand Up @@ -109,6 +116,7 @@ google.golang.org/appengine/urlfetch
# google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013
google.golang.org/genproto/googleapis/rpc/status
# google.golang.org/grpc v1.27.0
## explicit
google.golang.org/grpc
google.golang.org/grpc/attributes
google.golang.org/grpc/backoff
Expand Down Expand Up @@ -439,10 +447,12 @@ k8s.io/component-base/metrics
k8s.io/component-base/metrics/legacyregistry
k8s.io/component-base/version
# k8s.io/klog/v2 v2.2.0
## explicit
k8s.io/klog/v2
# k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6
k8s.io/kube-openapi/pkg/util/proto
# k8s.io/kubernetes v1.19.4
## explicit
k8s.io/kubernetes/pkg/api/legacyscheme
k8s.io/kubernetes/pkg/api/v1/pod
k8s.io/kubernetes/pkg/apis/core
Expand All @@ -462,6 +472,7 @@ k8s.io/kubernetes/pkg/volume/util/subpath
k8s.io/kubernetes/pkg/volume/util/types
k8s.io/kubernetes/pkg/volume/util/volumepathhandler
# k8s.io/utils v0.0.0-20200729134348-d5654de09c73
## explicit
k8s.io/utils/buffer
k8s.io/utils/exec
k8s.io/utils/integer
Expand All @@ -476,3 +487,27 @@ k8s.io/utils/trace
sigs.k8s.io/structured-merge-diff/v4/value
# sigs.k8s.io/yaml v1.2.0
sigs.k8s.io/yaml
# k8s.io/api => k8s.io/api v0.19.4
# k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.19.4
# k8s.io/apimachinery => k8s.io/apimachinery v0.19.4
# k8s.io/apiserver => k8s.io/apiserver v0.19.4
# k8s.io/cli-runtime => k8s.io/cli-runtime v0.19.4
# k8s.io/client-go => k8s.io/client-go v0.19.4
# k8s.io/cloud-provider => k8s.io/cloud-provider v0.19.4
# k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.19.4
# k8s.io/code-generator => k8s.io/code-generator v0.19.4
# k8s.io/component-base => k8s.io/component-base v0.19.4
# k8s.io/cri-api => k8s.io/cri-api v0.19.4
# k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.19.4
# k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.19.4
# k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.19.4
# k8s.io/kube-proxy => k8s.io/kube-proxy v0.19.4
# k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.19.4
# k8s.io/kubectl => k8s.io/kubectl v0.19.4
# k8s.io/kubelet => k8s.io/kubelet v0.19.4
# k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.19.4
# k8s.io/metrics => k8s.io/metrics v0.19.4
# k8s.io/node-api => k8s.io/node-api v0.19.4
# k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.19.4
# k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.19.4
# k8s.io/sample-controller => k8s.io/sample-controller v0.19.4

0 comments on commit 4172954

Please sign in to comment.