Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using transformations in objects' names #264

Closed
khmarochos opened this issue Dec 24, 2023 · 2 comments
Closed

Using transformations in objects' names #264

khmarochos opened this issue Dec 24, 2023 · 2 comments

Comments

@khmarochos
Copy link

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
Copy link
Author

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

@gre9ory
Copy link
Collaborator

gre9ory commented Dec 24, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants