Cannot deploy helm chart with dependencies
Describe the bug
I cannot deploy a helm chart that depends on sub-charts
Expected behavior
The chart and all the sub-charts should be deployed
Actual behavior
The sub-charts are not fetched and the deployment fails
Logs and/or screenshots
Error: An error occurred while checking for chart dependencies. You may need to run `helm dependency build` to fetch missing dependencies: found in Chart.yaml, but missing in charts/ directory: redis, trivy
Context & Configuration
The issue was reproduced using:
- Version of the template: 4.0.0
- GitLab server(s): Self-managed server / 15.5.6 / CE
- GitLab runner(s): K8S
The same chart is deployed successfully with version 3.3.2 of the Helm template.
Prior to version 4.0.0 of the Helm template, the deploy function deployed the packaged chart. But in version 4.0.0 the deploy function deploys the files present in the git repository.
The dependencies are fetched when packaging the chart, so when the package chart was deployed, everything worked well.
But the deploy function does not fetch the dependencies, so the deployment fails in 4.0.0.
The release notes do not mention this change. What was the motivation?
