Skip to content

Commit

Permalink
Merge pull request #9 from aaronc/master
Browse files Browse the repository at this point in the history
Added NAMESPACE param to get secret call in save_certs.sh
  • Loading branch information
alexcouper authored Jun 10, 2016
2 parents 6baa532 + 374e707 commit 7928af7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions save_certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7928af7

Please sign in to comment.