diff --git a/vertical-pod-autoscaler/RELEASE.md b/vertical-pod-autoscaler/RELEASE.md index b00373f385f174ab90643e2e1294b9b8a734328b..8b75bef901abdee43563d5404487926dd27ddf3d 100644 --- a/vertical-pod-autoscaler/RELEASE.md +++ b/vertical-pod-autoscaler/RELEASE.md @@ -160,43 +160,56 @@ we've been using them since `vertical-pod-autoscaler-0.1` and tags with the other pattern start only with `vertical-pod-autoscaler/v0.9.0` so we should make sure nothing we care about will break if we do. -1. [ ] Update information about newest version and K8s compatibility in - [the installation section of README](https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/README.md#installation). +1. [ ] Make the following changes in the release branch: -1. [ ] Update the yaml and sh files: + ```sh + git switch vpa-release-1.${minor} + ``` + +2. [ ] Update information about newest version and K8s compatibility in + [the installation section of README](https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/docs/installation.md#compatibility). + +3. [ ] Update the yaml and sh files: ```sh sed -i -s "s|[0-9]\+\.[0-9]\+\.[0-9]\+|[*vpa-version*]|g" ./deploy/*-deployment*.yaml sed -i -s "s|DEFAULT_TAG=\"[0-9]\+\.[0-9]\+\.[0-9]\+\"|DEFAULT_TAG=\"[*vpa-version*]\"|g" ./hack/*.sh ``` -1. [ ] Generate the flags files: +4. [ ] Generate the flags files: ```sh ./hack/generate-flags.sh ``` -1. [ ] Merge these changes into branch vpa-release-1.{$minor} and optionally into master if 1.{$minor} is the latest minor release - (example PR: [#5460](https://github.com/kubernetes/autoscaler/pull/5460)). +5. [ ] Merge these changes into branch vpa-release-1.{$minor}. Make note of the commit hash and use it in the next step. -1. [ ] Tag the commit with version const change + See https://github.com/kubernetes/autoscaler/pull/8154 as an example. + +6. [ ] Tag the commit corresponding to the changes from above in the release branch. ```sh + git checkout <commit hash> git tag -a vertical-pod-autoscaler-[*vpa-version*] -m "Vertical Pod Autoscaler release [*vpa-version*]" git tag -a vertical-pod-autoscaler/v[*vpa-version*] -m "Vertical Pod Autoscaler release [*vpa-version*]" ``` -1. [ ] Push tag +7. [ ] Push tag ```sh git push git@github.com:kubernetes/autoscaler.git vertical-pod-autoscaler-[*vpa-version*] git push git@github.com:kubernetes/autoscaler.git vertical-pod-autoscaler/v[*vpa-version*] ``` -1. [ ] To create and publish a github release from pushed tag go to +8. [ ] Create and publish a github release from pushed tag go to https://github.com/kubernetes/autoscaler/releases/tag/vertical-pod-autoscaler-[*vpa-version*], - press `Create release from tag`, complete release title and release notes, tick the - `This is a pre-release` box and press `Publish release`. + press `Create release from tag`, complete release title and release notes and press `Publish release`. + +9. Repeat steps 2-5 above in the **main branch**. + + After submitting, users who use `vpa-up.sh` will now start using the latest version. + + IMPORTANT: Make sure the tags created above exist before merging into the main branch! ## Permissions @@ -220,4 +233,4 @@ sure nothing we care about will break if we do. A member of the [autoscaler-admins](https://github.com/orgs/kubernetes/teams/autoscaler-admins) - can add you to add you as a collaborator. + can add you to add you as a collaborator. \ No newline at end of file