Linking external files to the values.yaml


kavindu175@...
 

Hi,

Currently, I am working on deploying MySQL using helm package. In that scenario, I want to add some custom configuration files and initialization SQL file. According to the details which are provided on GitHub, we have to paste the content of all the configuration files and all the initialization SQL files into the values.yaml file. But in my case, I have a very big initialization SQL file and it is hard to paste it on the values.yaml file. 

Therefore, is there a way to link an external file or file path to the values.yaml or is there some other solution for this issue? 
Kindly appreciated your inputs on this issue.

Thank you,
Kavindu
 




Matt Fisher
 

Hey Kavindu,

Up until very recently there was no way to reference files external to the helm chart asides from using invocations like `--set foo=$(cat myfile)`. However, there is a PR out there to make this simpler by adding a new --set-file flag: https://github.com/kubernetes/helm/pull/3758

Until then, using --set is your best bet.

Is it all right if we go ahead and close https://github.com/kubernetes/helm/issues/4131 and carry the conversation here? It's nice to keep a conversation in one place.

Thanks!


1504220459230_microsoft.png

Matthew Fisher, Caffeinated Software Engineer

Microsoft Azure Platform

Nanoose Bay, BC Canada

Emailmatt.fisher@...

Phone: 1(250)937-1478


From: cncf-kubernetes-helm@... <cncf-kubernetes-helm@...> on behalf of kavindu175@... <kavindu175@...>
Sent: Monday, May 28, 2018 3:19 AM
To: cncf-kubernetes-helm@...
Subject: [cncf-kubernetes-helm] Linking external files to the values.yaml
 
Hi,

Currently, I am working on deploying MySQL using helm package. In that scenario, I want to add some custom configuration files and initialization SQL file. According to the details which are provided on GitHub, we have to paste the content of all the configuration files and all the initialization SQL files into the values.yaml file. But in my case, I have a very big initialization SQL file and it is hard to paste it on the values.yaml file. 

Therefore, is there a way to link an external file or file path to the values.yaml or is there some other solution for this issue? 
Kindly appreciated your inputs on this issue.

Thank you,
Kavindu
 




kavindu175@...
 

Hi Matt,

Thank you for the advice and I will follow that. Can you place send some documentations regarding --set.
And yes we can close that GitHub issue.

Thank you,
Kavindu