You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to pass value from Environment values.yaml to shell script to get the version of server using curl command. The value is passed on to the script since I can echo first argument in script but curl does not recognize ${endpoint} and returns null. I can also echo $endpoint (returns "serverInfo") . Is there something I am missing
I am trying to pass value from Environment values.yaml to shell script to get the version of server using curl command. The value is passed on to the script since I can echo first argument in script but curl does not recognize ${endpoint} and returns null. I can also echo $endpoint (returns "serverInfo") . Is there something I am missing
helmfile.yaml:
{{ $version := exec "./get-version.sh" (list "{{ .Environment.Values.env.urlendpoint }}" ) }}
;
;
environments:
default:
values:
- /environments/values.yaml
values.yaml ( environment)
env:
urlendpoint: "serverInfo"
get-version.sh
endpoint=$1
curl -s -L https://testserver.com/${endpoint} # returns version of the server
The text was updated successfully, but these errors were encountered: