Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
2de27c8
Correct readme reference and other typos
humblec Aug 10, 2021
3583a43
Get rid of backOff* constants which are unused in the controller
humblec Aug 10, 2021
23c4d89
Clean up unused vars and types
ialidzhikov Aug 10, 2021
5922139
Check error on mockserver start and remove unused clientset arg
humblec Aug 10, 2021
b25b820
Merge pull request #662 from humblec/aggregate
k8s-ci-robot Aug 16, 2021
1c82e2d
Merge pull request #663 from ialidzhikov/cleanup/unused
k8s-ci-robot Aug 16, 2021
731e1cd
Support accepting GA annStorageProvisioner anno
Jiawei0227 Aug 25, 2021
d686130
Merge pull request #667 from Jiawei0227/anno
k8s-ci-robot Aug 26, 2021
0d1e1c4
Squashed 'release-tools/' changes from c0a4fb1dd..5489de6e7
mauriciopoppe Sep 10, 2021
721648b
Merge commit 'b3a9db19d628bcb39852b5130cd4d02cfa638186' into prow-upd…
mauriciopoppe Sep 10, 2021
0456e73
Merge pull request #672 from mauriciopoppe/prow-update-master
k8s-ci-robot Sep 10, 2021
48a32e2
Consider ResourceExhausted error as a final error.
jsafrane Oct 13, 2021
3a77c81
Merge pull request #675 from jsafrane/consider-resourceexhausted
k8s-ci-robot Oct 14, 2021
329d895
Squashed 'release-tools/' changes from 5489de6e7..5b9a1e067
pohly Oct 15, 2021
c4348eb
Merge commit '6a0d0d847095c0761434d9de62b83a36b421c233' into prow-upd…
pohly Oct 15, 2021
7ae6146
Merge pull request #676 from pohly/prow-update-master
k8s-ci-robot Oct 19, 2021
7c00473
Squashed 'release-tools/' changes from 5b9a1e067..a6a1a7979
pohly Nov 16, 2021
5dbe4d8
Merge commit 'b4ee947d36efc58cb56f83eaf3ae24f313b7895b' into prow-upd…
pohly Nov 16, 2021
06f0bf5
Merge pull request #683 from pohly/prow-update-master
k8s-ci-robot Nov 16, 2021
fdf9e07
external-provisioner changes to support PV Deletion protection finalizer
Nov 3, 2021
61e5b2d
Merge pull request #679 from deepakkinni/hon_pv_pol_extprov_v1
k8s-ci-robot Nov 18, 2021
dcae33f
bugfix: get capacity grpc request should have timeout
bai3shuo4 Dec 10, 2021
9f2e818
lift dependencies to latest versions
humblec Dec 10, 2021
2723a28
RatelimitingInterface have a new method ShutdownWithDrain
humblec Dec 10, 2021
58e5603
Merge pull request #689 from humblec/3.1.0
k8s-ci-robot Dec 14, 2021
0b71727
Merge pull request #688 from bai3shuo4/bugfix/sync-capacity-timeout
k8s-ci-robot Dec 14, 2021
40bd530
Add changelog for v3.1.0
pohly Dec 8, 2021
3d640ea
Merge pull request #686 from pohly/release-3.1.0
k8s-ci-robot Dec 18, 2021
c83b5e1
Merge tag 'v3.1.0' into rebase-v3.1.0
RomanBednar Jan 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 32 additions & 3 deletions release-tools/go-get-kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,43 @@ set -o pipefail
cmd=$0

function help () {
echo "$cmd <kubernetes version = x.y.z> - update all components from kubernetes/kubernetes to that version"
cat <<EOF
$cmd -p <kubernetes version = x.y.z>

Update all components from kubernetes/kubernetes to that version.

By default, replace statements are added for all Kubernetes packages,
whether they are used or not. This is useful when preparing a
repository for using k8s.io/kubernetes, because those replace
statements are needed to avoid "unknown revision v0.0.0" errors
(https://github.com/kubernetes/kubernetes/issues/79384).

With the optional -p flag, all unused replace statements are
pruned. This makes go.mod smaller, but isn't required.

The replace statements are needed for "go get -u ./..." which
otherwise ends up updating Kubernetes packages like client-go to
incompatible versions (in that case, a very old 1.x release which
happens to have a "higher" version number than the current
0.<Kubernetes minor version>.<Kubernetes patch version> numbers.
EOF
}

prune=false

while getopts "ph" o; do
case "$o" in
h) help; exit 0;;
p) prune=true;;
*) help; exit 1;;
esac
done
shift $((OPTIND-1))

if [ $# -ne 1 ]; then
help
exit 1
fi
case "$1" in -h|--help|help) help; exit 0;; esac

die () {
echo >&2 "$@"
Expand All @@ -55,7 +84,7 @@ mods=$( (set -x; curl --silent --show-error --fail "https://raw.githubuserconten
sed -n 's|.*k8s.io/\(.*\) => ./staging/src/k8s.io/.*|k8s.io/\1|p'
) || die "failed to determine Kubernetes staging modules"
for mod in $mods; do
if ! (env GO111MODULE=on go mod graph) | grep "$mod@" > /dev/null; then
if $prune && ! (env GO111MODULE=on go mod graph) | grep "$mod@" > /dev/null; then
echo "Kubernetes module $mod is not used, skipping"
# Remove the module from go.mod "replace" that was added by an older version of this script.
(set -x; env GO111MODULE=on go mod edit "-dropreplace=$mod") || die "'go mod edit' failed"
Expand Down
2 changes: 1 addition & 1 deletion release-tools/prow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ configvar CSI_PROW_BUILD_PLATFORMS "linux amd64; linux ppc64le -ppc64le; linux s
# which is disabled with GOFLAGS=-mod=vendor).
configvar GOFLAGS_VENDOR "$( [ -d vendor ] && echo '-mod=vendor' )" "Go flags for using the vendor directory"

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_BUILD "1.17.3" "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