Skip to content

Add changelogs for latest patch releases #1546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 22 additions & 0 deletions CHANGELOG/CHANGELOG-1.10.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# v1.10.12 - Changelog since v1.10.11

## Changes by Kind

### Uncategorized

- 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))
- 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))
- 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))

## Dependencies

### Added
_Nothing has changed._

### Changed
_Nothing has changed._

### Removed
_Nothing has changed._


# v1.10.11 - Changelog since v1.10.10

## Changes by Kind
Expand Down
38 changes: 38 additions & 0 deletions CHANGELOG/CHANGELOG-1.11.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
# v1.11.7 - Changelog since v1.11.6

## Changes by Kind

### Uncategorized

- 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))

## Dependencies

### Added
_Nothing has changed._

### Changed
_Nothing has changed._

### Removed
_Nothing has changed._

# v1.11.6 - Changelog since v1.11.5

## Changes by Kind

### Uncategorized

- 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))

## Dependencies

### Added
_Nothing has changed._

### Changed
_Nothing has changed._

### Removed
_Nothing has changed._

# v1.11.5 - Changelog since v1.11.4

## Changes by Kind
Expand Down
43 changes: 43 additions & 0 deletions CHANGELOG/CHANGELOG-1.12.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
# v1.12.5 - Changelog since v1.12.4

## Changes by Kind

### Other (Cleanup or Flake)

- 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))

### Uncategorized

- 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))
- 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))
Copy link
Contributor

@pwschuurman pwschuurman Dec 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#1515 is technically on 1.12.4. I would either move it to 1.12.4, or change the subtitle above to "Changelog since v1.12.3"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed


## Dependencies

### Added
_Nothing has changed._

### Changed
_Nothing has changed._

### Removed
_Nothing has changed._

# v1.12.4 - Changelog since v1.12.3

## Changes by Kind

### Uncategorized

- 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))

## Dependencies

### Added
_Nothing has changed._

### Changed
_Nothing has changed._

### Removed
_Nothing has changed._

# v1.12.3 - Changelog since v1.12.2

## Changes by Kind
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG/CHANGELOG-1.7.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# v1.7.19 - Changelog since v1.7.18

## Changes by Kind

### Uncategorized

- 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))

## Dependencies

### Added
_Nothing has changed._

### Changed
_Nothing has changed._

### Removed
_Nothing has changed._


# v1.7.18 - Changelog since v1.7.17

## Changes by Kind
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG/CHANGELOG-1.8.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# v1.8.18 - Changelog since v1.8.17

## Changes by Kind

### Uncategorized

- 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))

## Dependencies

### Added
_Nothing has changed._

### Changed
_Nothing has changed._

### Removed
_Nothing has changed._


# v1.8.17 - Changelog since v1.8.16

## Changes by Kind
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG/CHANGELOG-1.9.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# v1.9.14 - Changelog since v1.9.13

## Changes by Kind

### Uncategorized

- 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))
- 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))

## Dependencies

### Added
_Nothing has changed._

### Changed
_Nothing has changed._

### Removed
_Nothing has changed._


# v1.9.13 - Changelog since v1.9.12

## Changes by Kind
Expand Down
97 changes: 97 additions & 0 deletions hack/generate-patch-release-notes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
#!/bin/bash

# Usage: generate_patch_release_notes.sh
#
# Generates and creates commits for GCP CSI driver patch release notes.
#
# Required environment variables:
# CSI_RELEASE_TOKEN: Github token needed for generating release notes
#
# Prerequisites:
# - This script creates and deletes the origin/changelog branch in your git
# workspace. Make sure you are not using the branch for anything else.
#
# Instructions:
# 1. Update the versions in the $releases array
# 2. Set environment variables
# 3. Run the script
# 4. The script pushes the commits to your origin/changelog branch
# 5. Make any modifications as needed
# 6. Create a PR
#
# Caveats:
# - This script doesn't handle regenerating and updating existing branches.
# - The "--start-rev" option in the release-notes generator is inclusive, which
# causes the last commit from the last patch to show up in the release notes (if
# there was a release note). This needs to be manually modified until a solution is found.

set -e
set -x

repo="gcp-compute-persistent-disk-csi-driver"
releases=(
"1.12.5"
"1.11.7"
"1.10.12"
"1.9.14"
"1.8.18"
"1.7.19"
)

function gen_patch_relnotes() {
rm out.md || true
rm -rf /tmp/k8s-repo || true
GITHUB_TOKEN=$CSI_RELEASE_TOKEN \
release-notes --start-rev=$3 --end-rev=$2 --branch=$2 \
--org=kubernetes-sigs --repo=$1 \
--required-author="" --markdown-links --output out.md
}

script_dir="$(dirname "$(readlink -f "$0")")"
pushd "$script_dir/../CHANGELOG"

# Create branch
git fetch upstream
git checkout master
git rebase upstream/master

branch="changelog"
if [ `git rev-parse --verify "$branch" 2>/dev/null` ]; then
git branch -D "$branch"
fi
git checkout -b $branch

for version in "${releases[@]}"; do
# Parse minor and patch version
minorPatchPattern="(^[[:digit:]]+\.[[:digit:]]+)\.([[:digit:]]+)"
[[ "$version" =~ $minorPatchPattern ]]
minor="${BASH_REMATCH[1]}"
patch="${BASH_REMATCH[2]}"

echo $repo $version $minor $patch
newVer="v$minor.$patch"
prevPatch="$(($patch-1))"
prevVer="v$minor.$prevPatch"

# Generate release notes
gen_patch_relnotes $repo release-$minor $prevVer
cat > tmp.md <<EOF
# $newVer - Changelog since $prevVer

EOF

cat out.md >> tmp.md
echo >> tmp.md
echo >> tmp.md

file="CHANGELOG-$minor.md"
cat $file >> tmp.md
mv tmp.md $file

git add -u
git commit -m "Add changelog for $version"
done

git push -f origin $branch

popd