-
Notifications
You must be signed in to change notification settings - Fork 900
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
[WIP] Settings for providers #10944
[WIP] Settings for providers #10944
Conversation
@@ -2,8 +2,8 @@ module VmOrTemplate::Operations::Relocation | |||
extend ActiveSupport::Concern | |||
|
|||
included do | |||
supports_not :live_migrate, :reason => _("Operation not supported.") | |||
supports_not :evacuate, :reason => _("Operation not supported.") | |||
supports_not :live_migrate, :reason => "Operation not supported." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this and the other _()
thing is unrelated, but is need for this.
Because settings.rb
now triggers loading all subclasses and _()
does not work without settings
corresponding PR in the amazon repo ManageIQ/manageiq-providers-amazon#41 |
@Fryguy are you ok with the general direction of this? |
3b42cc6
to
702a293
Compare
commit 702a293 is also in #10964 |
Also, this requires all plugins to subclass a provider. I have a couple use cases where I only want to provide an automate domain and a few non-provider models. |
I'll wait until #11083 got merged and make use of |
<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush. |
702a293
to
36c065f
Compare
36c065f
to
e13fedb
Compare
Checked commit durandom@e13fedb with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 |
@Fryguy can you merge, if you are ok with this now? |
@Fryguy ping |
Looks really nice! |
Q: if we now add settings in say manageiq-providers-kubernetes/config/settings.yml and need the new settings backported, it will backport cleanly to fine but will need manual [EUWE] PRs, right? Any chance this could be euwe/yes? I see #11083 was euwe/no. Q: let's say you do add this support to euwe, would it help changes that become a hotfix onto say 5.7.1? I suppose no because this support would only go into later 5.7.z. Never mind then :) |
I don't see #11083 going back to euwe. It's too much risk at this point. |
It could be, because the path is the same, but probably will not, because git/diff will not have enough context to apply the patch. So it probably be a manual PR. |
Purpose or Intent
support for having the same settings.yml files in the config and environments directory for provider gems
@miq-bot add_label pluggable providers, wip
@miq-bot assign Fryguy
cc @blomquisg