Skip to content

Commit

Permalink
Added suport for -f=
Browse files Browse the repository at this point in the history
The wrapper should support '-f=' as well as '-f' when wrapping the helm commands. This falls in line
with what helm supports as commands. This addition supports rewriting and value found in -f to remove
a preceeding '=' sign, if one should exist.
  • Loading branch information
Nick Huanca committed May 15, 2019
1 parent 976087b commit 7c01ecf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ EOF
-f|--values)
cmdopts+=("$1")
yml="$2"
# increase support for -f=myfile.yaml or -f=myfile (helm support both spaces and equal sign)
if [[ $yml =~ ^=.*$ ]]; then
yml="${yml/=/}"
fi
if [[ $yml =~ ^(.*/)?secrets(\.[^.]+)*\.yaml$ ]]
then
decrypt_helper $yml ymldec decrypted
Expand Down

0 comments on commit 7c01ecf

Please sign in to comment.