vidispine / hull

The incredible HULL - Helm Uniform Layer Library - is a Helm library chart to improve Helm chart based workflows
https://github.com/vidispine/hull
Apache License 2.0
231 stars 13 forks source link

Using transformations in objects' names #264

Closed khmarochos closed 10 months ago

khmarochos commented 10 months ago

Hello!

First of all, thank you for sharing your work. The whole idea of generating Helm charts on the fly according to a single values file is fantastic.

I'm trying to use HULL in my work, and I'd like to ask you for some advice.

Is it possible to assign an object's name by a variable set by a user? Something kind of that:

hull:
  objects:
    secret:
      _HT^something.secretName:
<...skipped...>
something:
  secretName: my-secret

The user sets something.secretName, and my chart creates a Secret with this name prefixed by the chart and release names.

Obviously, the straightforward way I showed in my example won't work. So is there a right way to achieve this?

Thanks in advance for any hints.

P.S. Merry Christmas! 🎄

khmarochos commented 10 months ago

Ah, I see: metadataNameOverride is what I actually need. Sorry for the disturbance.

gre9ory commented 10 months ago

Yes, the intention behind metadataNameOverride was exactly this use case. And no disturbance at all, if you have further questions or problems please share them.

Thanks for the kind words, have a nice christmas time!