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 ability to set runner_options in Settings #65

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

agrare
Copy link
Member

@agrare agrare commented Jan 17, 2024

Depends on:

@agrare agrare added the enhancement New feature or request label Jan 17, 2024
if Rails.env.production?
options["root"] = Rails.root.join("data/containers/storage").to_s
else
options["network"] = "host"
end

options.merge!(Settings.ems.ems_workflows.runner_options.podman)
Copy link
Member Author

Choose a reason for hiding this comment

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

NOTE I wanted to merge after our defaults in case someone wanted to override one of these instead of doing options = Settings.ems.... above then setting these defaults

@agrare agrare force-pushed the add_runner_options_to_settings branch 2 times, most recently from 359a209 to 84504f9 Compare January 19, 2024 15:37
:ems_workflows:
:runner_options:
:docker:
:network: host
Copy link
Member Author

Choose a reason for hiding this comment

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

Having a development.yml meant I could move the options["network"] = "host" if Rails.env.development? out of the engine 🎉

Copy link
Member

Choose a reason for hiding this comment

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

huh. I never saw those implications. that is very cool

@agrare agrare force-pushed the add_runner_options_to_settings branch from 84504f9 to d2bbc06 Compare January 19, 2024 15:43
@agrare agrare force-pushed the add_runner_options_to_settings branch from d2bbc06 to 24b779c Compare January 25, 2024 15:53
@miq-bot
Copy link
Member

miq-bot commented Jan 25, 2024

Checked commits agrare/manageiq-providers-workflows@119d80c~...24b779c with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 🍰

else
options["network"] = "host"
end
options["root"] = Rails.root.join("data/containers/storage").to_s if Rails.env.production?
Copy link
Member

Choose a reason for hiding this comment

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

the development part was so cool that my brain is working overtime to try and do the same thing with production.

@kbrock kbrock merged commit 5edc914 into ManageIQ:master Jan 26, 2024
3 checks passed
@agrare agrare deleted the add_runner_options_to_settings branch January 26, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants