vectordotdev / helm-charts

Helm charts for Vector.
https://vector.dev
Mozilla Public License 2.0
111 stars 90 forks source link

Custom Lua code as ConfigMap #216

Closed NasAmin closed 2 years ago

NasAmin commented 2 years ago

Hi,

I am having to write custom Lua code to change metrics type. I would like to write this code in separate files and write some tests for them. However, I am not sure how to tell the helm chart to mount those files to the vector agent. What would be the best way to achieve this?

I am looking at this doc

I'll appreciate any help, thanks a lot!

spencergilbert commented 2 years ago

Hi @NasAmin,

extraVolumeMounts and extraVolumes can be used to include arbitrary volumes (including ConfigMaps) in the Vector Pod.

Let me know if that covers your need.

NasAmin commented 2 years ago

That worked great -- thanks a lot!