Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
add support for the template command
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Porto Carrero <ivan@oneconcern.com>
  • Loading branch information
Ivan Porto Carrero committed Feb 10, 2019
1 parent 72fa948 commit 881cb9d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "secrets"
version: "2.0.0"
version: "2.0.1"
usage: "Secrets encryption in Helm for Git storing"
description: |-
This plugin provides secrets values encryption for Helm charts secure storing
Expand Down
20 changes: 19 additions & 1 deletion secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Available Commands:
edit Edit secrets file and encrypt afterwards
clean Remove all decrypted files in specified directory (recursively)
install wrapper that decrypts secrets[.*].yaml files before running helm install
template wrapper that decrypts secrets[.*].yaml files before running helm template
upgrade wrapper that decrypts secrets[.*].yaml files before running helm upgrade
lint wrapper that decrypts secrets[.*].yaml files before running helm lint
diff wrapper that decrypts secrets[.*].yaml files before running helm diff
Expand Down Expand Up @@ -146,6 +147,23 @@ Typical usage:
EOF
}

template_usage() {
cat <<EOF
Install a chart
This is a wrapper for the "helm template" command. It will detect -f and
--values options, and decrypt any secrets.*.yaml files before running "helm
template".
Example:
$ ${HELM_BIN} secrets template <HELM INSTALL OPTIONS>
Typical usage:
$ ${HELM_BIN} secrets template -n i1 stable/nginx-ingress -f values.test.yaml -f secrets.test.yaml
EOF
}

upgrade_usage() {
cat <<EOF
Upgrade a deployed release
Expand Down Expand Up @@ -483,7 +501,7 @@ case "${1:-help}" in
fi
clean "$2"
;;
install|upgrade|lint|diff)
install|template|upgrade|lint|diff)
helm_command "$@"
;;
--help|-h|help)
Expand Down

0 comments on commit 881cb9d

Please sign in to comment.