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 the possibility to override the runner with initContainers / extra containers #550

Open
fdebuire opened this issue Mar 11, 2025 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@fdebuire
Copy link

Hello, with this doc it's possible to override part of the runner: https://docs.burrito.tf/user-guide/override-runner/

Use case context:
We have a use case where we need to run extra steps before running Terraform operations, basically our Terraform config is in yaml that includes some Jinja which need to be parsed before we can run the Terraform operations.

Maybe the solution would be to follow gitops principle and push this parsed configuration in the git repo before letting burrito handle the Terraform.

Feature request:
But we are also thinking an initContainer could solve this, and overall it might be useful to be able to override those specs.

@corrieriluca
Copy link
Member

corrieriluca commented Mar 11, 2025

Hello,

Yes I think adding the possibility to specify init containers can be overall useful to many users.

There is also a use-case of retrieving ephemeral data (such as credentials from a custom enterprise solution) and storing them in a emptyDir volume shared with the burrito runner main container.

The implementation is straightforward: it's an addition to the OverrideRunnerSpec struct with a field to specify init containers. Kubernetes will handle the rest once the Pod is created by Burrito.

Edit: implementation can follow the same pattern as #530

@corrieriluca corrieriluca added enhancement New feature or request good first issue Good for newcomers labels Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants