1.0.0 • Published 3 years ago

helm-updater v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Tool to update helm values in bulk for multi-brand multi-market monorepos

Simple tool to update helm values for specific app in bulk, with option to select app, brands and markets for which to do the update.

It does NOT:

  • Do any git operations like stage, commit or push.
  • Update next.config.js files (for now).
  • Update .env file in app.
  • Allows user to update only specific envs, as this tool is for inserting same key value pair for all envs. If values differ between envs, it will be faster for you to do this manually.

Assumptions

The script will assume that you have a monorepo with a folder with multiple apps, and that in each app there is a folder that contains helm values, that first divides them by brand, then by market. It will also assume that the filenames for the helm config files to be edited end in '-configmap'.

Example:

my-apps/
-app1
--helm-vals
---brand1
----us
----uk
----fr
---brand2
----de
----ru
----fr
-app2
... (same strucure)

How to run

Intall directly from npm

  1. Run npm install -g helm-updater in root code folder (containing package.json)
  2. Run helm-updater --help to see how to use command.
  3. Run command as per instructions in any folder you want (e.g, helm-updater -k KEY -v VALUE)

If cloning the repo

  1. Run npm install in root code folder (containing package.json)
  2. Run npm install -g . in root code folder to install JS script as executable command line application
  3. Run helm-updater --help to see how to use command.
  4. Run command as per instructions in any folder you want (e.g, helm-updater -k KEY -v VALUE)

That's it.