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

feat: set default runner image in global config #371

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

LucasMrqes
Copy link
Collaborator

This update adds a configuration parameter to set the default repository, tag, and pull policy for the image used in runner pods.
Previously, to use a custom image for all Burrito pods (often necessary during development), we had to override the image in both the chart's values and the spec.overrideRunnerSpec field of a TerraformLayer or TerraformRepository resource.

@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.99%. Comparing base (f73df4e) to head (8b9c64a).
Report is 3 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #371   +/-   ##
=======================================
  Coverage   50.99%   50.99%           
=======================================
  Files          73       73           
  Lines        4334     4334           
=======================================
  Hits         2210     2210           
  Misses       1935     1935           
  Partials      189      189           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@corrieriluca corrieriluca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment on lines 46 to 48
cmd.Flags().StringVar(&app.Config.Runner.Image.Repository, "runner-image-repository", "ghcr.io/padok-team/burrito-runner", "Repository of the image to use for the runner pods created by the controller")
cmd.Flags().StringVar(&app.Config.Runner.Image.Tag, "runner-image-tag", version.Version, "Tag of the image to use for the runner pods created by the controller")
cmd.Flags().StringVar(&app.Config.Runner.Image.PullPolicy, "runner-image-pull-policy", string(corev1.PullIfNotPresent), "Pull policy of the image to use for the runner pods created by the controller")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really necessary to expose those options as CLI flags?
If I remember correctly, not every config option is exposed as a flag in Burrito

Copy link
Collaborator Author

@LucasMrqes LucasMrqes Oct 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, this is useless I'm removing it

@LucasMrqes LucasMrqes merged commit 40f80e1 into main Oct 29, 2024
9 checks passed
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.

3 participants