From 43737e35d51599f51a91aea61d97e66692da29ad Mon Sep 17 00:00:00 2001 From: Daniel Holbach Date: Tue, 25 Feb 2020 10:42:43 +0100 Subject: [PATCH] Prepare 1.3.0 release Also point out how to create the dockerhub.yaml file, update other release related instructions. closes: #97 --- DEVELOPMENT.md | 23 +++++++++++++++++++---- README.md | 2 +- kured-ds.yaml | 7 +++---- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 06ef1da..3dff98c 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -77,10 +77,25 @@ real life testing. ## Publishing a new kured release -This is the most straight-forward in the whole process. +Check that `README.md` has an updated compatibility matrix and that the +url in the `kubectl` incantation (under "Installation") is updated to the +new version you want to release. -Picking a suitable tag and creating the release through the Github UI should -release the image just fine. +Now create the `kured--dockerhub.yaml` for e.g. `1.3.0`: + +```sh +VERSION=1.3.0 +MANIFEST="kured-$VERSION-dockerhub.yaml" +cat kured-rbac.yaml > "$MANIFEST" +cat kured-ds.yaml >> "$MANIFEST" +sed -i "s#docker.io/weaveworks/kured#docker.io/weaveworks/kured:$VERSION#g" "$MANIFEST" +``` + +The last thing you need to do is update the `image:` to point to the release +tag, e.g. `docker.io/weaveworks/kured:1.3.0`. + +Now you can head to the Github UI, use the version number as tag and upload the +`kured--dockerhub.yaml` file. ### Release notes @@ -88,4 +103,4 @@ Please describe what's new and noteworthy in the release notes, list the PRs that landed and give a shout-out to everyone who contributed. Please also note down on which releases the upcoming `kured` release was -tested on. +tested on. (Check old release notes if you're unsure.) diff --git a/README.md b/README.md index 333e43c..dc8055f 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ To obtain a default installation without Prometheus alerting interlock or Slack notifications: ``` -kubectl apply -f https://github.com/weaveworks/kured/releases/download/1.2.0/kured-1.2.0-dockerhub.yaml +kubectl apply -f https://github.com/weaveworks/kured/releases/download/1.3.0/kured-1.3.0-dockerhub.yaml ``` If you want to customise the installation, download the manifest and diff --git a/kured-ds.yaml b/kured-ds.yaml index d8e160e..b2df4db 100644 --- a/kured-ds.yaml +++ b/kured-ds.yaml @@ -29,10 +29,9 @@ spec: restartPolicy: Always containers: - name: kured - image: docker.io/weaveworks/kured # If you find yourself here - # wondering why there is no - # :latest tag on Docker Hub, - # see the FAQ in the README + image: docker.io/weaveworks/kured + # If you find yourself here wondering why there is no + # :latest tag on Docker Hub,see the FAQ in the README imagePullPolicy: IfNotPresent securityContext: privileged: true # Give permission to nsenter /proc/1/ns/mnt