Cray-HPE / loftsman

Define, organize, and ship your Kubernetes workloads with Helm charts easily
MIT License
9 stars 5 forks source link

Is it possible to manipulate a container/registry specified in a helm chart? #11

Closed nerscchris closed 3 years ago

nerscchris commented 3 years ago

Hi folks,

One thing I've got a query about is if we're sync'ing in 3rd party helm charts in to our system we want to change the images they reference from an external registry to an internal one instead (for a variety of reasons).

Is there a way with loftsman to modify those in some way? I'm not sure we can manipulate it via the values section.

All the best, Chris

rockholla commented 3 years ago

Hi Chris,

Typically a third-party chart owner would expose the ability to override values for any images that could/should be customizable, in which case you use the loftsman manifest values property for a chart to set it to whatever container image you want.

If that is not exposed via the chart, either the chart owner doesn't intend a container image or images to be anything other than what is hard-coded in the chart, or the owner simply didn't expose the ability by mistake or otherwise. The latter would indeed be a case for using Helm post-rendering which I believe we will make a move to support via loftsman in some way in the near future. Worth noting you could also simply maintain your own version of the chart as a fork or similar in this case.

I'll go ahead and close this issue for now, but just let me know if you need more help or clarification.

nerscchris commented 3 years ago

Hi Patrick,

OK, so the ones I've looked at don't mention the container name in their values.yaml presently, though I'm not familiar enough with this to know whether this means they cannot be specified. I'll experiment and see. Thanks!

All the best, Chris