Documentation for version v0.16.1 is no longer actively maintained. The version you are currently viewing is a static snapshot. For up-to-date documentation, see the latest version.
pkg/image/, copy the latest
v1.x.gofile to a file which corresponds to the new Kubernetes release number. For example, if the new Sonobuoy release corresponds to Kubernetes
v1.15, copy the
This file will contain a function to return the list of test images for this new release.
configmap and replace with those copied from the Kubernetes repository. The entries from the Kubernetes repository use an
intas the key in the map however in the Sonobuoy repository the keys are strings. Convert the new key names to strings.
pkg/image/manifest.go. Add a new case to the minor version check which will be the minor version of the new Kubernetes release. In this new case, call the newly created function (e.g.
pkg/buildinfo/version.goand update the
MinimumKubeVersionto be 2 minor version below the new Kubernetes release version and update the
MaximumKubeVersionto support future point releases. For example, for the Kubernetes 1.15.0 release, the
git tag -a v0.x.y -m "Release v0.x.y"
NOTE: Tag the new tip of master, not the branch you just merged.
git remote -v
The output of this command should include at least two configured remotes, typically
origin, which refers to your personal fork, and
upstream which refers to the upstream Sonobuoy repository.
origin firstname.lastname@example.org:<username>/sonobuoy.git (fetch) origin email@example.com:<username>/sonobuoy.git (push) upstream https://github.com/vmware-tanzu/sonobuoy (fetch) upstream https://github.com/vmware-tanzu/sonobuoy (push)
For the following steps, use the remote configured for the
The following instructions will use
NOTE: This will push all tags.
git push upstream --tags
To push just one tag, use the following command format (replacing
v0.x.y with the tag created in the previous step):
git push upstream refs/tags/v0.x.y
If there is a problem and you need to remove the tag, run the following commands:
git tag -d v0.x.y git push upstream :refs/tags/v0.x.y
:preceding the tag ref is necessary to delete the tag from the remote repository. Git refspecs have the format
<+><src>:<dst>. By pushing an empty
srcto the remote
dst, it makes the destination ref empty, effectively deleting it. For more details, see the
git pushdocumentation or this concise explanation on Stack Overflow.
docker run -it gcr.io/heptio-images/sonobuoy:v0.x.y /sonobuoy version
Sonobuoy Version in the output should match the release tag above.
sonobuoy run --mode quick. If this release corresponds to a new Kubernetes release as well, ensure:
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")" kubectl version --short
and verify that the server version matches the intended Kubernetes version.
sonobuoy imagesand get a list of test images as expected
The changes for this can almost all be completed by running the command:
This will copy the current master docs into the version given and update a few of the links in the README to be correct. It will also update the website config to add the new version and consider it the newest version of the docs.