File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,26 @@ go install github.com/noqcks/gucci@latest
4
4
go install github.com/plexsystems/konstraint@latest
5
5
npm install -g json-dereference-cli
6
6
7
+ # Desired version
8
+ helm_secrets_target_version=" 4.6.2"
9
+
10
+ # Get the installed version of helm-secrets
11
+ helm_secrets_installed_version=$( helm plugin list | awk ' /secrets/ {print $2}' )
12
+
13
+ # Compare versions and update if necessary
14
+ if [ -z " $helm_secrets_installed_version " ]; then
15
+ echo " helm-secrets is not installed. Installing version $helm_secrets_target_version ..."
16
+ helm plugin install https://github.com/jkroepke/helm-secrets --version " $helm_secrets_target_version "
17
+ elif [ " $( printf ' %s\n' " $helm_secrets_installed_version " " $helm_secrets_target_version " | sort -V | head -n1) " != " $helm_secrets_target_version " ]; then
18
+ echo " Updating helm-secrets from version $helm_secrets_installed_version to $helm_secrets_target_version ..."
19
+ helm plugin uninstall secrets
20
+ helm plugin install https://github.com/jkroepke/helm-secrets --version " $helm_secrets_target_version "
21
+ else
22
+ echo " helm-secrets is up-to-date (version $helm_secrets_installed_version )."
23
+ fi
24
+
7
25
helm plugin install https://github.com/databus23/helm-diff.git || echo " Skipping helm-diff"
8
- helm plugin install https://github.com/jkroepke/helm-secrets.git --version v3.15.0 || echo " Skipping helm-secret "
26
+
9
27
10
28
echo " Set shell rc file:"
11
29
echo ' echo export PATH="$HOME/go/bin:$PATH" >> $HOME/.zshrc'
You can’t perform that action at this time.
0 commit comments