Skip to content

Commit 352eef9

Browse files
authored
Merge pull request #1546 from msau42/changelog
Add changelogs for latest patch releases
2 parents e8582ae + 33d9df8 commit 352eef9

7 files changed

+261
-0
lines changed

CHANGELOG/CHANGELOG-1.10.md

+22
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# v1.10.12 - Changelog since v1.10.11
2+
3+
## Changes by Kind
4+
5+
### Uncategorized
6+
7+
- Properly wrap error from GCE Images.Get() API call, to fix a potential nil-ptr dereference ([#1517](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/1517), [@k8s-infra-cherrypick-robot](https://github.com/k8s-infra-cherrypick-robot))
8+
- Reduce log spam when identifying NVMe devices located in `/dev` ([#1545](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/1545), [@pwschuurman](https://github.com/pwschuurman))
9+
- Update golang builder to 1.20.12 ([#1541](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/1541), [@k8s-infra-cherrypick-robot](https://github.com/k8s-infra-cherrypick-robot))
10+
11+
## Dependencies
12+
13+
### Added
14+
_Nothing has changed._
15+
16+
### Changed
17+
_Nothing has changed._
18+
19+
### Removed
20+
_Nothing has changed._
21+
22+
123
# v1.10.11 - Changelog since v1.10.10
224

325
## Changes by Kind

CHANGELOG/CHANGELOG-1.11.md

+38
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
# v1.11.7 - Changelog since v1.11.6
2+
3+
## Changes by Kind
4+
5+
### Uncategorized
6+
7+
- Update golang builder to 1.20.12 ([#1540](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/1540), [@k8s-infra-cherrypick-robot](https://github.com/k8s-infra-cherrypick-robot))
8+
9+
## Dependencies
10+
11+
### Added
12+
_Nothing has changed._
13+
14+
### Changed
15+
_Nothing has changed._
16+
17+
### Removed
18+
_Nothing has changed._
19+
20+
# v1.11.6 - Changelog since v1.11.5
21+
22+
## Changes by Kind
23+
24+
### Uncategorized
25+
26+
- Properly wrap error from GCE Images.Get() API call, to fix a potential nil-ptr dereference ([#1516](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/1516), [@k8s-infra-cherrypick-robot](https://github.com/k8s-infra-cherrypick-robot))
27+
28+
## Dependencies
29+
30+
### Added
31+
_Nothing has changed._
32+
33+
### Changed
34+
_Nothing has changed._
35+
36+
### Removed
37+
_Nothing has changed._
38+
139
# v1.11.5 - Changelog since v1.11.4
240

341
## Changes by Kind

CHANGELOG/CHANGELOG-1.12.md

+43
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
1+
# v1.12.5 - Changelog since v1.12.4
2+
3+
## Changes by Kind
4+
5+
### Other (Cleanup or Flake)
6+
7+
- Update golang builder to 1.20.12 ([#1536](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/1536), [@msau42](https://github.com/msau42))
8+
9+
### Uncategorized
10+
11+
- Add --fallback-requisite-zones flag to allow disk provisioning to fallback to a default set of zones when there are an insufficient number of zones available in a passed in requisite topology in CreateVolume. ([#1542](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/1542), [@k8s-infra-cherrypick-robot](https://github.com/k8s-infra-cherrypick-robot))
12+
- Properly wrap error from GCE Images.Get() API call, to fix a potential nil-ptr dereference ([#1515](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/1515), [@k8s-infra-cherrypick-robot](https://github.com/k8s-infra-cherrypick-robot))
13+
14+
## Dependencies
15+
16+
### Added
17+
_Nothing has changed._
18+
19+
### Changed
20+
_Nothing has changed._
21+
22+
### Removed
23+
_Nothing has changed._
24+
25+
# v1.12.4 - Changelog since v1.12.3
26+
27+
## Changes by Kind
28+
29+
### Uncategorized
30+
31+
- Properly wrap error from GCE Images.Get() API call, to fix a potential nil-ptr dereference ([#1515](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/1515), [@k8s-infra-cherrypick-robot](https://github.com/k8s-infra-cherrypick-robot))
32+
33+
## Dependencies
34+
35+
### Added
36+
_Nothing has changed._
37+
38+
### Changed
39+
_Nothing has changed._
40+
41+
### Removed
42+
_Nothing has changed._
43+
144
# v1.12.3 - Changelog since v1.12.2
245

346
## Changes by Kind

CHANGELOG/CHANGELOG-1.7.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
# v1.7.19 - Changelog since v1.7.18
2+
3+
## Changes by Kind
4+
5+
### Uncategorized
6+
7+
- Update golang builder to 1.20.12 ([#1539](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/1539), [@k8s-infra-cherrypick-robot](https://github.com/k8s-infra-cherrypick-robot))
8+
9+
## Dependencies
10+
11+
### Added
12+
_Nothing has changed._
13+
14+
### Changed
15+
_Nothing has changed._
16+
17+
### Removed
18+
_Nothing has changed._
19+
20+
121
# v1.7.18 - Changelog since v1.7.17
222

323
## Changes by Kind

CHANGELOG/CHANGELOG-1.8.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
# v1.8.18 - Changelog since v1.8.17
2+
3+
## Changes by Kind
4+
5+
### Uncategorized
6+
7+
- Update golang builder to 1.20.12 ([#1538](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/1538), [@k8s-infra-cherrypick-robot](https://github.com/k8s-infra-cherrypick-robot))
8+
9+
## Dependencies
10+
11+
### Added
12+
_Nothing has changed._
13+
14+
### Changed
15+
_Nothing has changed._
16+
17+
### Removed
18+
_Nothing has changed._
19+
20+
121
# v1.8.17 - Changelog since v1.8.16
222

323
## Changes by Kind

CHANGELOG/CHANGELOG-1.9.md

+21
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# v1.9.14 - Changelog since v1.9.13
2+
3+
## Changes by Kind
4+
5+
### Uncategorized
6+
7+
- Properly wrap error from GCE Images.Get() API call, to fix a potential nil-ptr dereference ([#1518](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/1518), [@k8s-infra-cherrypick-robot](https://github.com/k8s-infra-cherrypick-robot))
8+
- Update golang builder to 1.20.12 ([#1537](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/1537), [@k8s-infra-cherrypick-robot](https://github.com/k8s-infra-cherrypick-robot))
9+
10+
## Dependencies
11+
12+
### Added
13+
_Nothing has changed._
14+
15+
### Changed
16+
_Nothing has changed._
17+
18+
### Removed
19+
_Nothing has changed._
20+
21+
122
# v1.9.13 - Changelog since v1.9.12
223

324
## Changes by Kind

hack/generate-patch-release-notes.sh

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
#!/bin/bash
2+
3+
# Usage: generate_patch_release_notes.sh
4+
#
5+
# Generates and creates commits for GCP CSI driver patch release notes.
6+
#
7+
# Required environment variables:
8+
# CSI_RELEASE_TOKEN: Github token needed for generating release notes
9+
#
10+
# Prerequisites:
11+
# - This script creates and deletes the origin/changelog branch in your git
12+
# workspace. Make sure you are not using the branch for anything else.
13+
#
14+
# Instructions:
15+
# 1. Update the versions in the $releases array
16+
# 2. Set environment variables
17+
# 3. Run the script
18+
# 4. The script pushes the commits to your origin/changelog branch
19+
# 5. Make any modifications as needed
20+
# 6. Create a PR
21+
#
22+
# Caveats:
23+
# - This script doesn't handle regenerating and updating existing branches.
24+
# - The "--start-rev" option in the release-notes generator is inclusive, which
25+
# causes the last commit from the last patch to show up in the release notes (if
26+
# there was a release note). This needs to be manually modified until a solution is found.
27+
28+
set -e
29+
set -x
30+
31+
repo="gcp-compute-persistent-disk-csi-driver"
32+
releases=(
33+
"1.12.5"
34+
"1.11.7"
35+
"1.10.12"
36+
"1.9.14"
37+
"1.8.18"
38+
"1.7.19"
39+
)
40+
41+
function gen_patch_relnotes() {
42+
rm out.md || true
43+
rm -rf /tmp/k8s-repo || true
44+
GITHUB_TOKEN=$CSI_RELEASE_TOKEN \
45+
release-notes --start-rev=$3 --end-rev=$2 --branch=$2 \
46+
--org=kubernetes-sigs --repo=$1 \
47+
--required-author="" --markdown-links --output out.md
48+
}
49+
50+
script_dir="$(dirname "$(readlink -f "$0")")"
51+
pushd "$script_dir/../CHANGELOG"
52+
53+
# Create branch
54+
git fetch upstream
55+
git checkout master
56+
git rebase upstream/master
57+
58+
branch="changelog"
59+
if [ `git rev-parse --verify "$branch" 2>/dev/null` ]; then
60+
git branch -D "$branch"
61+
fi
62+
git checkout -b $branch
63+
64+
for version in "${releases[@]}"; do
65+
# Parse minor and patch version
66+
minorPatchPattern="(^[[:digit:]]+\.[[:digit:]]+)\.([[:digit:]]+)"
67+
[[ "$version" =~ $minorPatchPattern ]]
68+
minor="${BASH_REMATCH[1]}"
69+
patch="${BASH_REMATCH[2]}"
70+
71+
echo $repo $version $minor $patch
72+
newVer="v$minor.$patch"
73+
prevPatch="$(($patch-1))"
74+
prevVer="v$minor.$prevPatch"
75+
76+
# Generate release notes
77+
gen_patch_relnotes $repo release-$minor $prevVer
78+
cat > tmp.md <<EOF
79+
# $newVer - Changelog since $prevVer
80+
81+
EOF
82+
83+
cat out.md >> tmp.md
84+
echo >> tmp.md
85+
echo >> tmp.md
86+
87+
file="CHANGELOG-$minor.md"
88+
cat $file >> tmp.md
89+
mv tmp.md $file
90+
91+
git add -u
92+
git commit -m "Add changelog for $version"
93+
done
94+
95+
git push -f origin $branch
96+
97+
popd

0 commit comments

Comments
 (0)