From 374e707d51d38e810ad1ff0201446bd0d467765f Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Fri, 10 Jun 2016 15:25:11 -0400 Subject: [PATCH] Added namespace param to get secrets in save_certs.sh --- save_certs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/save_certs.sh b/save_certs.sh index 5fe4a45..bc3eac0 100755 --- a/save_certs.sh +++ b/save_certs.sh @@ -25,10 +25,10 @@ CERT=$(cat $CERT_LOCATION/$DOMAIN/fullchain.pem | base64 --wrap=0) KEY=$(cat $CERT_LOCATION/$DOMAIN/privkey.pem | base64 --wrap=0) DHPARAM=$(openssl dhparam 2048 | base64 --wrap=0) -kubectl get secrets $SECRET_NAME && ACTION=replace || ACTION=create; - NAMESPACE=${NAMESPACE:-default} +kubectl get secrets --namespace $NAMESPACE $SECRET_NAME && ACTION=replace || ACTION=create; + cat << EOF | kubectl $ACTION -f - { "apiVersion": "v1",