Skip to content

Commit a65fdb4

Browse files
authored
Merge pull request #8081 from raywainman/vpa-release-instructions
VPA - Update release instructions for automatically built images
2 parents b98a5ff + 7bbb443 commit a65fdb4

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

vertical-pod-autoscaler/RELEASE.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ We use the issue to communicate what is state of the release.
2828
To see what code was actually tested, look for `===== last commit =====`
2929
entries in the full `build-log.txt` of a given test run.
3030
3. [ ] Make sure the end to end VPA tests are green.
31+
4. [ ] Make sure the [continuous image builds](https://testgrid.k8s.io/sig-autoscaling-vpa-images#post-autoscaler-push-vpa-images) are green.
3132

3233
### New minor release
3334

@@ -46,6 +47,46 @@ We use the issue to communicate what is state of the release.
4647

4748
## Build and stage images
4849

50+
Select either the Automatic and Manual process below.
51+
52+
### Option 1: (Preferred) Automatic
53+
54+
NOTE: Currently this process can only be used for new minor releases. Patch
55+
releases need to follow the manual process below.
56+
57+
Images are continuously built as part of the PR release process and are listed
58+
in the following repository:
59+
[gcr.io/k8s-staging-autoscaling](http://gcr.io/k8s-staging-autoscaling). Also
60+
see the
61+
[dashboard](https://testgrid.k8s.io/sig-autoscaling-vpa-images#post-autoscaler-push-vpa-images)
62+
for build status.
63+
64+
To stage an image:
65+
66+
1. Pick an image to promote from the latest automatically built images in the
67+
repository. Make note of the automatically generated tag (the tag will contain
68+
the date, the name of the latest tag in the repository and a commit hash). For
69+
example `v20250430-cluster-autoscaler-chart-9.46.6-81-g6a6a912b4`.
70+
71+
2. Set the `BUILD_TAG` variable to this tag in your shell:
72+
73+
```sh
74+
BUILD_TAG=<tag>
75+
```
76+
77+
3. Now tag this image with the latest version tag:
78+
79+
```sh
80+
cd vertical-pod-autoscaler/
81+
TAG=`grep 'const versionCore = ' common/version.go | cut -d '"' -f 2`
82+
echo "Adding tag $TAG based on built tag $BUILD_TAG"
83+
gcloud artifacts docker tags add gcr.io/k8s-staging-autoscaling/vpa-admission-controller:$BUILD_TAG gcr.io/k8s-staging-autoscaling/vpa-admission-controller:$TAG --project=k8s-staging-autoscaling
84+
gcloud artifacts docker tags add gcr.io/k8s-staging-autoscaling/vpa-recommender:$BUILD_TAG gcr.io/k8s-staging-autoscaling/vpa-recommender:$TAG --project=k8s-staging-autoscaling
85+
gcloud artifacts docker tags add gcr.io/k8s-staging-autoscaling/vpa-updater:$BUILD_TAG gcr.io/k8s-staging-autoscaling/vpa-updater:$TAG --project=k8s-staging-autoscaling
86+
```
87+
88+
### Option 2: Manual
89+
4990
Create a fresh clone of the repo and switch to the `vpa-release-1.${minor}`
5091
branch. This makes sure you have no local changes while building the images.
5192

0 commit comments

Comments
 (0)