|
40 | 40 | # - CHANGELOG: latest snapshot becomes the release, create a new snapshot
|
41 | 41 | # section that reflect the master branch state
|
42 | 42 | # - 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 |
44 | 45 | #
|
45 | 46 | # Difference between 1&2: API change release notes
|
46 | 47 | #
|
|
52 | 53 | # - python base diff: https://github.com/kubernetes-client/python-base/compare/commit1..commit2
|
53 | 54 | # - Kubernetes changelog, e.g. https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.18.md
|
54 | 55 | # - 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. |
55 | 59 | #
|
56 | 60 | # Usage:
|
57 | 61 |
|
@@ -92,6 +96,9 @@ util::changelog::update_release_api_version $CLIENT_VERSION $old_client_version
|
92 | 96 | # don't need to collect release notes in release-1.18, because any API
|
93 | 97 | # change in 1.18.x (x > 17) must be a cherrypick that is already included in
|
94 | 98 | # 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" |
95 | 102 | release_notes=$(util::kube_changelog::get_api_changelog "$KUBERNETES_BRANCH" "$old_k8s_api_version")
|
96 | 103 | if [[ -n "$release_notes" ]]; then
|
97 | 104 | util::changelog::write_changelog v$CLIENT_VERSION "### API Change" "$release_notes"
|
|
0 commit comments