Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
ref(upgrading-workflow): use -w 0 flag when base64 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fisher committed Jan 6, 2017
1 parent 70f50a5 commit 88f7007
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/installing-workflow/configuring-object-storage.md
Expand Up @@ -44,7 +44,7 @@ Operators should configure object storage by editing the Helm values file before
All values will be automatically (base64) encoded _except_ the `key_json` values under `gcs`/`gcr`. These must be base64-encoded. This is to support cleanly passing said encoded text via `helm --set` cli functionality rather than attempting to pass the raw JSON data. For example:

$ helm install workflow --namespace deis \
--set global.storage=gcs,gcs.key_json="$(cat /path/to/gcs_creds.json | base64 | tr -d '[:space:]')"
--set global.storage=gcs,gcs.key_json="$(cat /path/to/gcs_creds.json | base64 -w 0)"

You are now ready to run `helm install deis/workflow --namespace deis -f values.yaml` using your desired object storage.

Expand Down
2 changes: 1 addition & 1 deletion src/managing-workflow/upgrading-workflow.md
Expand Up @@ -35,7 +35,7 @@ $ helm upgrade deis/workflow
**Note:** If using off-cluster object storage on [gcs](https://cloud.google.com/storage/) and/or off-cluster registry using [gcr](https://cloud.google.com/container-registry/) and intending to upgrade from a pre-`v2.10.0` chart to `v2.10.0` or greater, the `key_json` values will now need to be pre-base64-encoded. Therefore, assuming the rest of the custom/off-cluster values are defined in the existing `values.yaml` used for previous installs, the following may be run:

```
$ B64_KEY_JSON="$(cat ~/path/to/key.json | base64 | tr -d '[:space:]')"
$ B64_KEY_JSON="$(cat ~/path/to/key.json | base64 -w 0)"
$ helm upgrade <release_name> deis/workflow -f values.yaml --set gcs.key_json="${B64_KEY_JSON}",registry-token-refresher.gcr.key_json="${B64_KEY_JSON}"
$ # alternatively, simply replace the appropriate values in values.yaml and do without the `--set` parameter
```
Expand Down

0 comments on commit 88f7007

Please sign in to comment.