helm-secrets: Running on Windows fails

Current Behavior

When I install the plugin using Helm on Windows (using a MINGW terminal) and I attempt to run my helm command, there’s an error as follows:

Error: fork/exec C:\Users\MY_USER\AppData\Roaming\helm\plugins\helm-secrets\scripts\run.sh: %1 is not a valid Win32 application.

My Helm command after installing the plugin was something like:

helm upgrade --install some-release --namespace=whatever -f my-values.yaml -f secrets://secrets.yaml chart --version="x.y.z" --dry-run

Unfortunately the command terminates with the error message mentioned at the beginning.

To install the plugin I used:

helm plugin install https://github.com/jkroepke/helm-secrets --version v3.13.0

I even tried the manual way like:

curl -LsSf https://github.com/jkroepke/helm-secrets/releases/latest/download/helm-secrets.tar.gz | tar -C "/c/Users/MY_USER/AppData/Roaming/helm/plugins" -xzf-

In both cases the installation seemed successfull and I could validate the plugin using e.g.:

$ helm plugin list
NAME    VERSION DESCRIPTION
secrets 3.13.0  This plugin provides secrets values encryption for Helm charts secure storing

Expected Behavior

The plugin would work as expected!

Steps To Reproduce

No response

Environment

  • Helm Version: version.BuildInfo{Version:"v3.8.2", GitCommit:"6e3701edea09e5d55a8ca2aae03a68917630e91b", GitTreeState:"clean", GoVersion:"go1.17.5"}
  • Helm Secrets Version: 3.13.0
  • OS: Windows
  • Shell: MINGW

Anything else?

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 37 (19 by maintainers)

Most upvoted comments

#214 introduce a new command called helm secrets patch windows. This command patches the local plugin.yaml.