export TDTAG="dockerregistry.example.com/cluster-turndown:X.Y.Z"
docker build -t "${TDTAG}" .
docker push "${TDTAG}"
# Then update the image in your cluster
kubectl set image \
-n turndown \
deployment/cluster-turndown \
cluster-turndown="${TDTAG}"To re-generate the code for the defined CRDs, do the following:
bash generate.shThe script is based on https://github.com/kubernetes/sample-controller, specifically https://github.com/kubernetes/sample-controller/blob/master/hack/update-codegen.sh.
- Call
update-version.sh VERSION, e.g../update-version.sh X.Y.Z - Build and push the new image to GCR (
make VERSION=X.Y.Z release) - Merge the changes
- Tag a new release off of
developfor the new version - Manually upload
artifacts/cluster-turndown-full.yamlandscripts/gke-create-service-key.shto the GitHub Release created by the tag