Skip to content

Commit

Permalink
fix: regression in commands not decrypting
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurice Faber committed Jul 13, 2021
1 parent 8eb060e commit 121bf45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Expand Up @@ -20,6 +20,7 @@
"gotmpl",
"groupsname",
"gzrs",
"Hashicorp",
"htpasswd",
"ingressgateway",
"istioctl",
Expand Down
16 changes: 8 additions & 8 deletions bin/otomi
Expand Up @@ -261,21 +261,21 @@ function execute() {
evaluate_secrets
check_kube_context=1
set -o pipefail
drun "$exec hf diff --skip-deps $SKIP_CLEANUP" | grep -Ev $helmfile_output_hide
drun "$exec crypt && hf diff --skip-deps $SKIP_CLEANUP" | grep -Ev $helmfile_output_hide
;;
destroy)
evaluate_secrets
check_kube_context=1
if [ -z "$FILE_OPT" ] && [ -z "$LABEL_OPT" ]; then
drun "bin/destroy.sh $original_params" | grep -Ev $helmfile_output_hide
else
drun "$exec hf destroy" | grep -Ev $helmfile_output_hide
drun "$exec crypt && hf destroy" | grep -Ev $helmfile_output_hide
fi
;;
encrypt)
check_sops_file
evaluate_secrets
drun ". bin/common.sh $original_params && crypt enc" "$@"
drun "$exec crypt enc" "$@"
;;
gen-drone)
evaluate_secrets
Expand All @@ -289,12 +289,12 @@ function execute() {
evaluate_secrets
check_kube_context=1
set -o pipefail
drun "$exec hf $*" | grep -Ev $helmfile_output_hide
drun "$exec crypt && hf $*" | grep -Ev $helmfile_output_hide
;;
lint)
evaluate_secrets
set -o pipefail
drun "$exec hf lint --skip-deps"
drun "$exec crypt && hf lint --skip-deps"
;;
pull)
is_repo
Expand All @@ -312,18 +312,18 @@ function execute() {
score-templates)
evaluate_secrets
check_env_dir
drun "$exec hf_template | kube-score score --ignore-test -"
drun "$exec crypt && hf_template | kube-score score --ignore-test -"
;;
sync)
evaluate_secrets
check_kube_context=1
set -o pipefail
drun "$exec hf sync --skip-deps $SKIP_CLEANUP" | grep -Ev $helmfile_output_hide
drun "$exec crypt && hf sync --skip-deps $SKIP_CLEANUP" | grep -Ev $helmfile_output_hide
;;
template)
evaluate_secrets
check_env_dir
drun ". bin/common.sh $original_params && QUIET=1 crypt && hf_template"
drun "$exec QUIET=1 crypt && hf_template"
;;
test)
evaluate_secrets
Expand Down

0 comments on commit 121bf45

Please sign in to comment.