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

Add support for custom go-jinja2 Extensions #479

Open
14 tasks
benedikt-bartscher opened this issue May 13, 2023 · 2 comments
Open
14 tasks

Add support for custom go-jinja2 Extensions #479

benedikt-bartscher opened this issue May 13, 2023 · 2 comments

Comments

@benedikt-bartscher
Copy link

Command

  • check-image-updates
  • delete
  • deploy
  • diff
  • helm-pull
  • helm-update
  • list-images
  • list-targets
  • poke-images
  • prune
  • render
  • seal
  • validate
  • version

Who are you?

No response

What do you want to do?

Currently there are only some predefined jinja2 extensions available.
It would be awesome if we could supply additional extensions via a cli flag or at best via deployment.yaml (multi-repo compatible).

Why do you need that?

Advanced templating

@netthier
Copy link
Contributor

Also interested in something like this, but I do wonder how that would be implemented with Go being a compiled language.

@codablock
Copy link
Collaborator

Implementing this is not an issue, as Kluctl is using Python+Jinja2 under the hood for the templating. The thing that I'd be concerned of would be security, as Jinja2 extensions are basically plain Python code, allowing you to do all kinds of shenanigans.

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

3 participants