Skip to content

Commit 1ad8e5e

Browse files
committed
wip
1 parent 4a50ce8 commit 1ad8e5e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

scripts/release.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
# - CHANGELOG: latest snapshot becomes the release, create a new snapshot
4141
# section that reflect the master branch state
4242
# - README: add the release to README
43-
# - an extra PR to update CHANGELOG and README in master
43+
# - an extra PR to update CHANGELOG and README in master in sync with this new
44+
# release
4445
#
4546
# Difference between 1&2: API change release notes
4647
#
@@ -52,6 +53,9 @@
5253
# - python base diff: https://github.com/kubernetes-client/python-base/compare/commit1..commit2
5354
# - Kubernetes changelog, e.g. https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.18.md
5455
# - add debug log
56+
# - add a sentence about "changes since {last release}". In most cases our
57+
# releases should be sequential. This script (the workflow above) is based on
58+
# this assumption, and we should make the release note clear about that.
5559
#
5660
# Usage:
5761

@@ -92,6 +96,9 @@ util::changelog::update_release_api_version $CLIENT_VERSION $old_client_version
9296
# don't need to collect release notes in release-1.18, because any API
9397
# change in 1.18.x (x > 17) must be a cherrypick that is already included in
9498
# release-1.19.
99+
# TODO(roycaihw): not all Kubernetes API changes modify the OpenAPI spec.
100+
# Download the patch and skip if the spec is not modified. Also we want want to
101+
# look at other k/k sections like "deprecation"
95102
release_notes=$(util::kube_changelog::get_api_changelog "$KUBERNETES_BRANCH" "$old_k8s_api_version")
96103
if [[ -n "$release_notes" ]]; then
97104
util::changelog::write_changelog v$CLIENT_VERSION "### API Change" "$release_notes"

0 commit comments

Comments
 (0)