Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: found in Chart.yaml, but missing in charts/ directory: mysql

I have added mysql in requirements.yaml. Helm dependency downloads the mysql chart

helm dependency update Hang tight while we grab the latest from your chart repositories... ...Successfully got an update from the "nginx" chart repository ...Successfully got an update from the "stable" chart repository  Update Complete. ⎈Happy Helming!⎈ Saving 1 charts Downloading mysql from repo <our private repository> Deleting outdated charts 

But when I do helm install my_app_chart ../my_app_chart It gives error

Error: found in Chart.yaml, but missing in charts/ directory: mysql 
like image 952
Komal Kadam Avatar asked Dec 06 '19 09:12

Komal Kadam


People also ask

What is chart Yaml?

yaml: This is where you'll put the information related to your chart. That includes the chart version, name, and description so you can find it if you publish it on an open repository. Also in this file you'll be able to set external dependencies using the dependencies key. values.

What is charts folder in helm?

Helm uses a packaging format called charts. A chart is a collection of files that describe a related set of Kubernetes resources. A single chart might be used to deploy something simple, like a memcached pod, or something complex, like a full web app stack with HTTP servers, databases, caches, and so on.

What does helm lint do?

Synopsis. This command takes a path to a chart and runs a series of tests to verify that the chart is well-formed. If the linter encounters things that will cause the chart to fail installation, it will emit [ERROR] messages.

What is Helm dependency update?

It will pull down the latest charts that satisfy the dependencies, and clean up old dependencies. On successful update, this will generate a lock file that can be used to rebuild the dependencies to an exact version.


1 Answers

You don't have to add it to the control version system, you just download them again if for some reason you have lost them (for example when you clone the repository). To do this, execute the command:

helm dependency update

The above command will download the dependencies you've defined in the requirements.yaml file or dependencies entry in Chart.yaml to the charts folder. This way, requirements are updated and you'll have the correct dependencies without worrying about if you updated them also in the control version system.

like image 174
PhoneixS Avatar answered Oct 02 '22 09:10

PhoneixS