-
Notifications
You must be signed in to change notification settings - Fork 181
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
Add Sprig templating functions to 'templatedfields' option #537
Comments
Hi, The For you example, I suppose it should be even better to add directly |
Hi @Issif , having a Currently it requires you to overwrite all the github rules to add e.g. Still, even if Falco provides a option to expand to |
I see. I'm adding that feature in my todo. I can't give you an ETA. |
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh with Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle rotten |
/remove-lifecycle rotten |
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh with Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle rotten |
/remove-lifecycle rotten |
@Issif Are you still working on this? |
Still haven't started, sorry |
No worries, I was asking because I was looking for something to pick up. But I am working with @alacuku on something else. |
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh with Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle rotten |
/remove-lifecycle rotten |
Motivation
The default go templating language does not come with many data manipulation functions. This limits the 'templating' you can do with the
templatedfields
option. Especially manipulating the output field values from plugins. E.g. thegithub
plugin only output the full repo uri (https://github.com/<owner>/<repo>
). Would be nice to be able to usetemplatedfields
to create a field just containing the<repo>
part, instead of the full uri to pass on to one of falcosidekick' outputs.Feature
Add Sprig template functions to the go template rendering of
templatedfields
. Helm uses Sprig as well to extend their templating functions.Alternatives
Additional context
The text was updated successfully, but these errors were encountered: