Skip to content

dependency chart requires adding repo definition first #85

Open
@fty4

Description

Hello everyone,

I just tested this action and find it very useful.

When using the ct install inside a workflow I have a problem with the dependencies.
The chart that will be installed depends on another chart and Helm expects the repository already be present.

Here is the message from the run:

Error message
Installing charts...
Version increment checking disabled.

------------------------------------------------------------------------------------------------------------------------
 Charts to be processed:
------------------------------------------------------------------------------------------------------------------------
 mychart => (version: "0.2.3", path: "./")
------------------------------------------------------------------------------------------------------------------------

Error: no repository definition for [https://chart.url/.](https://chart.url/) Please add the missing repos via 'helm repo add'
Error: Error installing charts: Error building dependencies for chart 'mychart  => (version: "0.2.3", path: "./")': Error waiting for process: exit status 1
------------------------------------------------------------------------------------------------------------------------
No chart changes detected.
------------------------------------------------------------------------------------------------------------------------
Error installing charts: Error building dependencies for chart 'mychart  => (version: "0.2.3", path: "./")': Error waiting for process: exit status 1
Error: Process completed with exit code 1.

In my local dev environment this repo to the chart is already added - but inside the runner not.
Is there any best practice how the charts can be added automatically (by ct?)?

Currently my approach would be to read out all dependencies.*.repository values from the Chart.yaml and add them in an extra step via bash.

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions