mamezou-tech / setup-helmfile

Setup helmfile action
MIT License
41 stars 20 forks source link

Chart without version causing issues #24

Closed tonsV2 closed 3 years ago

tonsV2 commented 3 years ago

I'm currently using helmfile to install a chart directly from a subfolder in my project.

The helmfile can be found here.

The relevant part of my pipeline can be found here.

The complete output from the log can be found here. But I've tried to show the relevant part below.

...
NOTES:
1. Get the application URL by running these commands:
  http://urbantz-api.dev.fitfit.dk/

helm:whTHc> NAME        NAMESPACE       REVISION    UPDATED                                 STATUS      CHART               APP VERSION
urbantz-api urbantz-api-dev 7           2021-03-13 10:49:43.781953996 +0000 UTC deployed    urbantz-api-0.1.0   1.16.0
exec: helm list --filter ^urbantz-api$ --kube-context nuc --namespace urbantz-api-dev --deployed --failed --pending --debug: NAME           NAMESPACE       REVISION    UPDATED                                 STATUS      CHART               APP VERSION
urbantz-api urbantz-api-dev 7           2021-03-13 10:49:43.781953996 +0000 UTC deployed    urbantz-api-0.1.0   1.16.0     
urbantz-api urbantz-api-dev 7           2021-03-13 10:49:43.781953996 +0000 UTC deployed    urbantz-api-0.1.0   1.16.0     

getting deployed release version failed:Failed to get the version for:helm
Removed /tmp/values538071524
Removed /tmp/values900722675

UPDATED RELEASES:
NAME          CHART    VERSION
urbantz-api   helm/           

Error: Process completed with exit code 1.NOTES:
1. Get the application URL by running these commands:
  http://urbantz-api.dev.fitfit.dk/

helm:whTHc> NAME        NAMESPACE       REVISION    UPDATED                                 STATUS      CHART               APP VERSION
urbantz-api urbantz-api-dev 7           2021-03-13 10:49:43.781953996 +0000 UTC deployed    urbantz-api-0.1.0   1.16.0
exec: helm list --filter ^urbantz-api$ --kube-context nuc --namespace urbantz-api-dev --deployed --failed --pending --debug: NAME           NAMESPACE       REVISION    UPDATED                                 STATUS      CHART               APP VERSION
urbantz-api urbantz-api-dev 7           2021-03-13 10:49:43.781953996 +0000 UTC deployed    urbantz-api-0.1.0   1.16.0     
urbantz-api urbantz-api-dev 7           2021-03-13 10:49:43.781953996 +0000 UTC deployed    urbantz-api-0.1.0   1.16.0     

getting deployed release version failed:Failed to get the version for:helm
Removed /tmp/values538071524
Removed /tmp/values900722675

UPDATED RELEASES:
NAME          CHART    VERSION
urbantz-api   helm/           

Error: Process completed with exit code 1.

When I'm running the same command locally, using the same version of helmfile (v0.126.2), the process terminates with exit code 0. Any clue about how to fix the above?

tonsV2 commented 3 years ago
[ "$IMAGE_TAG" != "latest" ] && ./helmfile -e prod sync

If the condition in the above expression is false 1 will be the exit code of the entire expression. Currently I'm handling this by doing a ls on the line afterwards.