WyriHaximus / github-action-helm3

Slim wrapper around helm3
58 stars 29 forks source link

Issue executing helm and connecting to cluster #41

Open A-Dreyer-Mobster opened 3 years ago

A-Dreyer-Mobster commented 3 years ago

Setting up kubectl configuration Preparing helm execution Executing helm W1021 10:02:01.532600 10 loader.go:223] Config not found: /home/runner/work/temp/kubeconfig**** Error: Kubernetes cluster unreachable

WyriHaximus commented 3 years ago

What does your workflow file look like?

A-Dreyer-Mobster commented 3 years ago

This was just the error received, the actual values used in the workflow look. like this;

- name: Helm 3

#   uses: WyriHaximus/github-action-helm3@v2.0
#   with:
#     #token: '${{ github.token }}'
#     exec: helm upgrade ${{ env.CHART }} "./chartname/" --install --wait --atomic --namespace=${{ env.NAMESPACE }} --set=global.database.host=${{ env.DBNAME }} --set=global.database.username=${{ env.DBUSR }} --values="./chartname/values.yaml"
#     #kubeconfig: '${{ secrets.KUBECONFIG }}'
WyriHaximus commented 3 years ago

That's rather weird as all it does is it put the kubeconfig you give and use that to run Helm. Is your secret empty?

Could you try the following two uses?