From 906a685cc77e86912a8c99bbcc6a3e334058365a Mon Sep 17 00:00:00 2001 From: Martyn Date: Sat, 6 Feb 2021 15:52:21 +0100 Subject: [PATCH] Add GPG ability to wrapper script --- helm-wrapper.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/helm-wrapper.sh b/helm-wrapper.sh index 2c29c65..cad999c 100644 --- a/helm-wrapper.sh +++ b/helm-wrapper.sh @@ -1,3 +1,12 @@ +#!/bin/sh + +GPG_KEY='/home/argocd/gpg/gpg.asc' + +if [ -f ${GPG_KEY} ] +then + gpg --quiet --import ${GPG_KEY} +fi + # helm secrets only supports a few helm commands if [ $1 = "template" ] || [ $1 = "install" ] || [ $1 = "upgrade" ] || [ $1 = "lint" ] || [ $1 = "diff" ] then