Azure / Azure/k8s-bake

Unable to Add New Chart URL

Open
#83 2 comments 0 reactions 0 assignees View on GitHub
idle need-to-triage
Dominant language
TypeScript
Stars
65
Forks
49
Avg merge
9d 9h
Merged PRs (30d)
5

Description

I am using the azure/k8s-bake repository as part of my GitHub Actions workflow to render Kubernetes yaml resource manifests using Helm. However, I am encountering an issue where I am unable to add new chart URLs to the repository.

I have tried using the arguments parameter to pass in the --repo flag with the URL of the new chart repository, as well as using the helm repo add command to add the new chart repository before running the helm template command. However, neither of these methods seem to have any effect.

due to run the `helm dependency update` command , it appears to fail when attempting to retrieve charts from remote repositories, resulting in errors that prevent my workflow from completing successfully. Specifically, I am receiving error messages indicating that the remote chart repository is not accessible or that it cannot be found.

It might be like this.
```
/usr/bin/unzip -o -q /home/runner/work/_temp/b66e215b-7c6e-4950-b1d7-094a40964c34
Running helm dependency update command..
/opt/hostedtoolcache/helm/3.11.3/x64/linux-amd64/helm dependency update /
Error: could not find naturalselectionlabs/web-app: stat /: no such file or directory
Error: Failed to run bake action. Error: Error: The process '/opt/hostedtoolcache/helm/3.11.3/x64/linux-amd64/helm' failed with exit code 1
at ExecState._setResult (/home/runner/work/_actions/azure/k8s-bake/v2.4/lib/index.js:31[16](https://github.com/NaturalSelectionLabs/Daedalus/actions/runs/4782724271/jobs/8502343921#step:7:17):25)
at ExecState.CheckComplete (/home/runner/work/_actions/azure/k8s-bake/v2.4/lib/index.js:3099:18)
at ChildProcess. (/home/runner/work/_actions/azure/k8s-bake/v2.4/lib/index.js:2993:27)
at ChildProcess.emit (node:events:527:28)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
/home/runner/work/_actions/azure/k8s-bake/v2.4/lib/index.js:7427
throw Error(util.format('Failed to run bake action. Error: %s', err));
^
```

Any sugguestion for feature? I'm glad to create PR.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure in the GitHub Actions workflow and trace the bake action through lib/index.js, focusing on how it invokes helm dependency update. Compare the arguments parameter and a preceding helm repo add command, then define and test the expected behavior for remote chart repositories before considering a change.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, helm, kubernetes, typescript
Domain
ci-cd, devops, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.