From 4075407d63688875f5bc4e215d01e99d6abff7b9 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Thu, 13 Jun 2019 11:59:02 -0700 Subject: [PATCH] Add steps to update Helm packages. --- distribution.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/distribution.md b/distribution.md index 7fba390b..fa6759fd 100644 --- a/distribution.md +++ b/distribution.md @@ -107,6 +107,40 @@ e.g. `v1.0.2` $ ./update --ca v1.0.3 ``` +7. **Update the Helm packages** + + > **NOTE**: This is an optional step, only necessary if we want to release a + > new helm package. + + Once we have the docker images, we can release a new version in our Helm + [repository](https://smallstep.github.io/helm-charts/) we need to pull the + [helm-charts](https://github.com/smallstep/helm-charts) project, and change the + following: + + * On step-certificates/Chart.yaml: + * Increase the `version` number (Helm Chart version). + * Set the `appVersion` to the step-certificates version. + * On step-certificates/values.yaml: + * Set the docker tag `image.tag` to the appropriate version. + + Then create the step-certificates package running: + + ```sh + helm package ./step-certificates + ``` + + A new file like `step-certificates-.tgz` would be created, then switch + to the `gh-pages` branch and add the file to it, and update the index.yaml using + the `helm repo index` command: + + ```sh + git checkout gh-pages + git add "step-certificates-.tgz" + helm repo index --merge index.yaml --url https://smallstep.github.io/helm-charts/ . + git commit -a -m "Add package for step-certificates " + git push origih gh-pages + ``` + *All Done!* ## Versioning