Git Product home page Git Product logo

helm-subenv's People

Contributors

hydeenoble avatar miguel-lattuada avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

helm-subenv's Issues

Fields are empty after execution

values.yaml

icm:
  icm-as:
    image:
      repository: "${ICM_TEST_IMAGE}"

environment.sh

#!/usr/bin/env bash
ICM_TEST_IMAGE="whatever"

After executing source ./environment.sh and helm subenv -f values.yaml the env variable is replaced with an empty string.

My base image for execution is ubuntu-20.4-DS1_v2-adopt-adoptium-jdk with the following RUN cmd to install helm:

RUN apk add --no-cache ca-certificates bash git openssh curl \
    && wget -q https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl \
    && chmod +x /usr/local/bin/kubectl \
    && wget -q https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm \
    && chmod +x /usr/local/bin/helm

Plugin didn't process correctly bash array

Hello !

When trying to use bash env variable define in a .env:

.env

variables0="cool"
variables1=("components3" "components3" "components3" ) 
variables2="notcool"

After reference this value in a values.yaml and using the command to make substitution :

helm subenv -f $ENV/$components/values.yaml

I got the following error when the plugin try to substitute the last vars from my file to a values.yaml

image

To make this work i need to define the variable in this order

.env

variables0="cool"
variables2="notcool"
variables1=("components3" "components3" "components3" ) 

When i want to define a new variable i need to be aware about this comportement, so for new user joining my project it can be difficult if this error appear.

Is it possible to take in count this type of variable from bash ?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.