Skip to content

Commit

Permalink
Added namespace param to get secrets in save_certs.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Jun 10, 2016
1 parent 6baa532 commit 374e707
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 374e707

Please sign in to comment.