@@ -28,6 +28,7 @@ We use the issue to communicate what is state of the release.
28
28
To see what code was actually tested, look for ` ===== last commit ===== `
29
29
entries in the full ` build-log.txt ` of a given test run.
30
30
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.
31
32
32
33
### New minor release
33
34
@@ -46,6 +47,46 @@ We use the issue to communicate what is state of the release.
46
47
47
48
## Build and stage images
48
49
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
+
49
90
Create a fresh clone of the repo and switch to the ` vpa-release-1.${minor} `
50
91
branch. This makes sure you have no local changes while building the images.
51
92
0 commit comments