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

Commit

Permalink
Merge pull request #105 from oneconcern/template-command
Browse files Browse the repository at this point in the history
add support for the template command
  • Loading branch information
szibis committed Mar 29, 2019
2 parents 002d277 + 881cb9d commit 04781c5
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 @@ -56,6 +56,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 @@ -163,6 +164,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 @@ -500,7 +518,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 04781c5

Please sign in to comment.