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

✨ (directoty/yaml): Add Go template feature #53

Merged
merged 3 commits into from
Dec 21, 2023

Conversation

xunleii
Copy link
Collaborator

@xunleii xunleii commented Dec 21, 2023

  • ✨ (directoty/yaml): Add Go template feature
  • πŸ“ (directory/yaml): Add more details on the Go template mecanism

In order to inject external data like secret or environment variable, or
adding a bit more "intel" into the YAML directory definition, we've
added the possibility to use Go template.

All sprig function are available, with the add of `readFile` that reads
a file
@xunleii xunleii force-pushed the feature/yaml-template branch from e8cd876 to 7a03323 Compare December 21, 2023 11:00
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests βœ…

Comparison is base (8f0aff4) 88.72% compared to head (cbb99c2) 89.49%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #53      +/-   ##
==========================================
+ Coverage   88.72%   89.49%   +0.76%     
==========================================
  Files          16       17       +1     
  Lines         931      942      +11     
==========================================
+ Hits          826      843      +17     
+ Misses         82       76       -6     
  Partials       23       23              
Flag Coverage Ξ”
unittests 89.49% <100.00%> (+0.76%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

@xunleii xunleii merged commit db8846e into main Dec 21, 2023
5 checks passed
@xunleii xunleii deleted the feature/yaml-template branch December 21, 2023 11:07
xunleii added a commit that referenced this pull request May 24, 2024
✨ (directoty/yaml): Add Go template feature
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

Successfully merging this pull request may close these issues.

2 participants