Created
September 9, 2019 18:52
-
-
Save JWDobken/75a9582c2a1f364e008a8b9e16d8fd8c to your computer and use it in GitHub Desktop.
apply nginx-ingress templates
This file contains hidden or 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 | |
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" | |
mkdir -p $SCRIPTPATH/values | |
# FETCH | |
echo 'FETCH CHARTS' | |
## CERT-MANAGER | |
curl https://raw.githubusercontent.com/jetstack/cert-manager/release-0.10/deploy/manifests/00-crds.yaml -s --create-dirs -o $SCRIPTPATH/00-crds.yaml # cert-manager CRDs | |
helm fetch \ | |
--repo https://charts.jetstack.io \ | |
--version v0.10.0 \ | |
--untar \ | |
--untardir $SCRIPTPATH/charts \ | |
cert-manager | |
FILE=$SCRIPTPATH/values/cert-manager.yaml | |
if ! test -f "$FILE"; then | |
cp -p $SCRIPTPATH/charts/cert-manager/values.yaml $FILE | |
fi | |
## NGINX-INGRESS | |
helm fetch \ | |
--version 1.19.1 \ | |
--untar \ | |
--untardir $SCRIPTPATH/charts \ | |
stable/nginx-ingress | |
FILE=$SCRIPTPATH/values/nginx-ingress.yaml | |
if ! test -f "$FILE"; then | |
cp -p $SCRIPTPATH/charts/nginx-ingress/values.yaml $FILE | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment