-
Notifications
You must be signed in to change notification settings - Fork 253
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
Use Sprig template functions #2033
Comments
Thanks @fahhem for the suggestion. This would be a very good enhancement. Would you be willing to work on this? 😉 The same issue has been discussed also here: In addition, we could add some nfd-specific functions, say |
/help |
@marquiz: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Thanks @marquiz, sent a PR to do this: #2038 I went with |
Great work! Reviewed
That's good 👍 |
What would you like to be added:
https://github.com/Masterminds/sprig
This library provides ease-of-use helpers, like
split
andreplace
.Why is this needed:
Currently, I cannot use
system.dmiid.product_name
because the value has a space in it, and spaces are disallowed in labels. If I could do{{.Value | replace " " "-" }}
it would fix it for me. As a result, I have to match the product_names I expect and manually write labels for them.This will be true of any data that's not controlled by the cluster operator to be put into the content of a label.
The text was updated successfully, but these errors were encountered: