JovianX / helm-release-plugin

Helm3 plugin that pulls(re-creates) helm Charts from deployed releases, and updates values of deployed releases without the chart.
Apache License 2.0
97 stars 11 forks source link

Enhance OSTYPE environment variable processing during plugin installation #16

Closed vadim-zabolotniy closed 2 years ago

vadim-zabolotniy commented 2 years ago

With last update, where was added automatic installation of yq, plugin installation was broken. echo $OSTYPE gives linux-gnu in python:3.10-slim container. Currently, during image building facing next error:

Unsupported operating system detected while installing yq.
Error: plugin install hook for "release" exited with error
vadim-zabolotniy commented 2 years ago

My current guess that hook is being executed in /bin/sh rather in /bin/bash. If I do echo #OSTYPE in sh I getting nothing.

vadim-zabolotniy commented 2 years ago

Here is my solution for this issue.

rtpro commented 2 years ago

Thanks, @vadim-zabolotniy, looks good, merged!