Skip to content

Commit 4d7010c

Browse files
authored
Merge pull request #392 from Jiawei0227/prow-update-release-2.1
release-2.1: update release-tools
2 parents 5fdabec + 28ce6e6 commit 4d7010c

File tree

6 files changed

+33
-12
lines changed

6 files changed

+33
-12
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/golang/protobuf v1.3.2
99
github.com/google/go-cmp v0.3.1 // indirect
1010
github.com/imdario/mergo v0.3.7 // indirect
11-
github.com/kubernetes-csi/csi-lib-utils v0.7.0
11+
github.com/kubernetes-csi/csi-lib-utils v0.7.1
1212
github.com/kubernetes-csi/csi-test v2.0.0+incompatible
1313
google.golang.org/grpc v1.26.0
1414
k8s.io/api v0.17.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
127127
github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA=
128128
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
129129
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
130-
github.com/kubernetes-csi/csi-lib-utils v0.7.0 h1:t1cS7HTD7z5D7h9iAdjWuHtMxJPb9s1fIv34rxytzqs=
131-
github.com/kubernetes-csi/csi-lib-utils v0.7.0/go.mod h1:bze+2G9+cmoHxN6+WyG1qT4MDxgZJMLGwc7V4acPNm0=
130+
github.com/kubernetes-csi/csi-lib-utils v0.7.1 h1:xd/mTX6j8TXFBxaRD8XX3cQ+jTNHxnA4OfZFDthL/to=
131+
github.com/kubernetes-csi/csi-lib-utils v0.7.1/go.mod h1:bze+2G9+cmoHxN6+WyG1qT4MDxgZJMLGwc7V4acPNm0=
132132
github.com/kubernetes-csi/csi-test v2.0.0+incompatible h1:ia04uVFUM/J9n/v3LEMn3rEG6FmKV5BH9QLw7H68h44=
133133
github.com/kubernetes-csi/csi-test v2.0.0+incompatible/go.mod h1:YxJ4UiuPWIhMBkxUKY5c267DyA0uDZ/MtAimhx/2TA0=
134134
github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=

release-tools/SIDECAR_RELEASE_PROCESS.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ naming convention `<hostpath-deployment-version>-on-<kubernetes-version>`.
3939
1. Changes can then be updated in all the sidecar repos and hostpath driver repo
4040
by following the [update
4141
instructions](https://github.com/kubernetes-csi/csi-release-tools/blob/master/README.md#sharing-and-updating).
42-
1. New pull and CI jobs are configured by
42+
1. New pull and CI jobs are configured by adding new K8s versions to the top of
4343
[gen-jobs.sh](https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-csi/gen-jobs.sh).
44-
New pull jobs that have been unverified should be initially made optional.
45-
[Example](https://github.com/kubernetes/test-infra/pull/15055)
44+
New pull jobs that have been unverified should be initially made optional by
45+
setting the new K8s version as
46+
[experimental](https://github.com/kubernetes/test-infra/blob/a1858f46d6014480b130789df58b230a49203a64/config/jobs/kubernetes-csi/gen-jobs.sh#L40).
4647
1. Once new pull and CI jobs have been verified, and the new Kubernetes version
4748
is released, we can make the optional jobs required, and also remove the
4849
Kubernetes versions that are no longer supported.
@@ -54,14 +55,19 @@ naming convention `<hostpath-deployment-version>-on-<kubernetes-version>`.
5455
generator](https://github.com/kubernetes/release/tree/master/cmd/release-notes)
5556
1. Generate release notes for the release. Replace arguments with the relevant
5657
information.
58+
* Clean up old cached information (also needed if you are generating release
59+
notes for multiple repos)
60+
```bash
61+
rm -rf /tmp/k8s-repo
62+
```
5763
* For new minor releases on master:
58-
```
64+
```bash
5965
GITHUB_TOKEN=<token> release-notes --discover=mergebase-to-latest
6066
--github-org=kubernetes-csi --github-repo=external-provisioner
6167
--required-author="" --output out.md
6268
```
6369
* For new patch releases on a release branch:
64-
```
70+
```bash
6571
GITHUB_TOKEN=<token> release-notes --discover=patch-to-latest --branch=release-1.1
6672
--github-org=kubernetes-csi --github-repo=external-provisioner
6773
--required-author="" --output out.md

release-tools/prow.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ configvar CSI_PROW_DRIVER_INSTALL "install_csi_driver" "name of the shell functi
211211
# still use that name.
212212
configvar CSI_PROW_DRIVER_CANARY "${CSI_PROW_HOSTPATH_CANARY}" "driver image override for canary images"
213213

214+
# Image registry to use for canary images.
215+
# Only valid if CSI_PROW_DRIVER_CANARY == "canary".
216+
configvar CSI_PROW_DRIVER_CANARY_REGISTRY "gcr.io/k8s-staging-sig-storage" "registry for canary images"
217+
218+
214219
# The E2E testing can come from an arbitrary repo. The expectation is that
215220
# the repo supports "go test ./test/e2e -args --storage.testdriver" (https://github.com/kubernetes/kubernetes/pull/72836)
216221
# after setting KUBECONFIG. As a special case, if the repository is Kubernetes,
@@ -693,7 +698,11 @@ install_csi_driver () {
693698
fi
694699

695700
if [ "${CSI_PROW_DRIVER_CANARY}" != "stable" ]; then
701+
if [ "${CSI_PROW_DRIVER_CANARY}" == "canary" ]; then
702+
images="$images IMAGE_TAG=${CSI_PROW_DRIVER_CANARY} IMAGE_REGISTRY=${CSI_PROW_DRIVER_CANARY_REGISTRY}"
703+
else
696704
images="$images IMAGE_TAG=${CSI_PROW_DRIVER_CANARY}"
705+
fi
697706
fi
698707
# Ignore: Double quote to prevent globbing and word splitting.
699708
# It's intentional here for $images.
@@ -764,7 +773,6 @@ install_snapshot_controller() {
764773
# collect logs and cluster status (like the version of all components, Kubernetes version, test version)
765774
collect_cluster_info () {
766775
cat <<EOF
767-
=========================================================
768776
Kubernetes:
769777
$(kubectl version)
770778
@@ -782,7 +790,6 @@ docker exec csi-prow-control-plane docker image ls --format='{{.Repository}} {{.
782790
done
783791
)
784792
785-
=========================================================
786793
EOF
787794

788795
}

vendor/github.com/kubernetes-csi/csi-lib-utils/metrics/metrics.go

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ github.com/hashicorp/golang-lru/simplelru
5858
github.com/imdario/mergo
5959
# github.com/json-iterator/go v1.1.8
6060
github.com/json-iterator/go
61-
# github.com/kubernetes-csi/csi-lib-utils v0.7.0
61+
# github.com/kubernetes-csi/csi-lib-utils v0.7.1
6262
github.com/kubernetes-csi/csi-lib-utils/connection
6363
github.com/kubernetes-csi/csi-lib-utils/leaderelection
6464
github.com/kubernetes-csi/csi-lib-utils/metrics

0 commit comments

Comments
 (0)