-
Notifications
You must be signed in to change notification settings - Fork 308
Refactor LibKubernetesGenerator code structure #1546
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
Refactor LibKubernetesGenerator code structure #1546
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1546 +/- ##
=========================================
Coverage ? 61.46%
=========================================
Files ? 103
Lines ? 3065
Branches ? 637
=========================================
Hits ? 1884
Misses ? 1181
Partials ? 0 ☔ View full report in Codecov by Sentry. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brendandburns, tg123 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This pull request refactors the code structure of the LibKubernetesGenerator project.
Why
the old template Nustache is inactive and did not recieve any update in last 5 yr.
The syntax of Nustache is not friendly to developers:
elseNew Template Engine
https://github.com/scriban/scriban/
The scriban templating engine was chosen over other options due to its unique features that make it suitable for code generation. One of these features is the embed mode, which is specifically designed for this purpose.
Furthermore, scriban offers a rich syntax that meets the requirements of the current SDK build. This means it provides a wide range of functionalities that can handle complex templating tasks, making it an excellent choice for this use case.