在 k8s-bake 动作中调试 Helm

问题描述 投票:0回答:2

Azure/k8s-bake 操作失败并显示以下消息

Running helm dependency update command..
Error: Error: Failed to run bake action. Error: Error: The process '/usr/bin/helm' failed with exit code 1
    at ExecState._setResult (/__w/_actions/azure/k8s-bake/v1/node_modules/@actions/exec/lib/toolrunner.js:547:25)
    at ExecState.CheckComplete (/__w/_actions/azure/k8s-bake/v1/node_modules/@actions/exec/lib/toolrunner.js:530:18)
    at ChildProcess.<anonymous> (/__w/_actions/azure/k8s-bake/v1/node_modules/@actions/exec/lib/toolrunner.js:430:27)
    at ChildProcess.emit (events.js:210:5)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

步骤细节

    - name: Bake helm values
      id: bake
      uses: azure/k8s-bake@v1
      with:
        renderEngine: 'helm'
        helmChart: ${{ env.HELM_CHART }} 
        overrides: |
          nameOverride: ${{ env.KUBE_NAMESPACE }}
          image.repository: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_REGISTRY_IMAGE }}
          image.tag: ${{ github.sha }}
          ingress.hosts[0].host: ${{ secrets.API_DOMAIN }}
          ingress.hosts[0].paths: ${{ env.INGRESS_PATH }}

Base容器设置为

alpine/helm:3.6.3

如何为 helm 启用调试以了解原因?

kubernetes-helm github-actions
2个回答
0
投票

将静音标志设置为

'false'
.

    - name: Bake helm values
      id: bake
      uses: azure/k8s-bake@v1
      with:
        renderEngine: 'helm'
        silent: 'false' # set this to get more verbose helm command logs
        helmChart: ${{ env.HELM_CHART }} 
        overrides: |
          nameOverride: ${{ env.KUBE_NAMESPACE }}
          image.repository: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_REGISTRY_IMAGE }}
          image.tag: ${{ github.sha }}
          ingress.hosts[0].host: ${{ secrets.API_DOMAIN }}
          ingress.hosts[0].paths: ${{ env.INGRESS_PATH }}

-1
投票

和你一样的问题。 你找到根本原因并解决了吗?

© www.soinside.com 2019 - 2024. All rights reserved.