Last active
July 12, 2019 16:08
-
-
Save djfarrelly/2fa9e419506bba20c36b90a4825d871b to your computer and use it in GitHub Desktop.
How to test your helm chart values yaml files locally
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage `./local-deploy.sh <command> <service-name> | |
# Requirements: helm must be installed and match the version on our cluster | |
# commands: | |
# deploy Deploys the code to the cluster (requires cluster access) | |
# dry-run Prints the k8s deployment and service yaml files generates by helm | |
CMD="$1" | |
SVC="$2" | |
# 1. Point helm at our buffer-helm charts repo | |
# 2. Determine what chart name to use | |
# 3. Run helm command to deploy (or dry-run) using the selected base helm chart and the path to the values.yaml file | |
helm upgrade --install <chart> <path-to-values-yaml-file> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment