Skip to content

Commit

Permalink
Merge pull request #5863 from kgolab/vpa-release-doc
Browse files Browse the repository at this point in the history
Clarify and simplify the "build and stage images" step.
  • Loading branch information
k8s-ci-robot authored Jun 15, 2023
2 parents 463d7d6 + 72e67a7 commit d7fa2d9
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions vertical-pod-autoscaler/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,20 @@ We use the issue to communicate what is state of the release.

## Build and stage images

Create a fresh clone of the repo and switch to the `vpa-release-0.${minor}`
branch. This makes sure you have no local changes while building the images.

For example:
```sh
git clone git@github.com:kubernetes/autoscaler.git
git switch vpa-release-0.14
```

Once in the freshly cloned repo, build and stage the images.

```sh
for component in recommender updater admission-controller ; do REGISTRY=gcr.io/k8s-staging-autoscaling TAG=[*vpa-version*] make release --directory=pkg/${component}; done
cd vertical-pod-autoscaler/
for component in recommender updater admission-controller ; do TAG=`grep 'const VerticalPodAutoscalerVersion = ' common/version.go | cut -d '"' -f 2` REGISTRY=gcr.io/k8s-staging-autoscaling make release --directory=pkg/${component}; done
```

## Test the release
Expand Down Expand Up @@ -156,4 +168,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.

0 comments on commit d7fa2d9

Please sign in to comment.