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

[FEATURE REQUEST] Add functionality for using context values for jinja templating in kubernetesmod. #10

Open
djivey opened this issue Jan 10, 2025 · 0 comments · May be fixed by #11
Open

Comments

@djivey
Copy link
Contributor

djivey commented Jan 10, 2025

Is your feature request related to a problem? Please describe.
I would like to make better use of templating in kubernetesmod and provide context values for the templates. This makes it easier to manage Kubernetes resources with dynamic content based on pillar or other variables.

Describe the solution you'd like
I would like kubernetesmod to support the use of context in templating, similar to how file.managed does in Salt with defaults. This would allow users to provide context values for templates, simplifying the process of managing Kubernetes resources with dynamic content. This would primarily apply to updating the __read_and_render_yaml_file function to support the changes and adding the argument to all of the required functions.

Describe alternatives you've considered
No alternatives considered, similar functionality exists within other salt modules .

Additional context
Adding support for context in templating would enhance the usability of kubernetesmod and align it with the functionality provided by other modules like file.managed in Salt. This feature would be particularly useful for users who manage Kubernetes resources with dynamic content and rely on templating for configuration management.

@djivey djivey changed the title [FEATURE REQUEST] Add functionality for using defaults for jinja templating in kubernetesmod. [FEATURE REQUEST] Add functionality for using context values for jinja templating in kubernetesmod. Jan 10, 2025
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 a pull request may close this issue.

1 participant