I have a github actions job that has a step like this
- name: Deploy to EKS
uses: tensor-hq/eksctl-helm-action@main
with:
eks_cluster: ${{ env.CLUSTER_NAME }}
command: |-
helm upgrade --install test a-super-chart -n test-ns --set somevalue=someValue
When something is wonky with the executed helm command...say an empty value or anything that makes Helm install/upgrade to fail, the step shows as successful but there is an error in the logs.
For example, like this.
Error: failed to parse .github/values_for_stg_alb_ingress.yaml:
error converting YAML to JSON: yaml: invalid map key: map[interface {}]interface {}
{".Values.ingress.ingressClassName | default \"alb\"":interface {}(nil)}
Is there a way to make the workflow fail in such occasions?
Thanks in advance!