-
Notifications
You must be signed in to change notification settings - Fork 898
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
Addition of OpenShift provider #2611
Conversation
@Fryguy , @blomquisg the provider is missing a second call to kubeclient to get k8s inventory. |
@miq-bot add_label providers/containers |
<gemfile_checker />@JPrause @jvlcek Gemfile changes detected in commit abonas@8629ef8. Please review. |
8629ef8
to
60ca9d7
Compare
<gemfile_checker />@JPrause @jvlcek Gemfile changes detected in commit abonas@60ca9d7. Please review. |
1 similar comment
<gemfile_checker />@JPrause @jvlcek Gemfile changes detected in commit abonas@60ca9d7. Please review. |
60ca9d7
to
9f955eb
Compare
<gemfile_checker />@JPrause @jvlcek Gemfile changes detected in commit abonas@9f955eb. Please review. |
9f955eb
to
2ab197e
Compare
<gemfile_checker />@JPrause @jvlcek Gemfile changes detected in commit abonas@2ab197e. Please review. |
2ab197e
to
e318a67
Compare
<gemfile_checker />@JPrause @jvlcek Gemfile changes detected in commit abonas@e318a67. Please review. |
@@ -10,6 +10,9 @@ def textual_group_properties | |||
|
|||
def textual_group_relationships | |||
items = %w(container_nodes container_services container_groups) | |||
if @ems.class.ems_type.eql? 'openshift' |
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.
Prefer ==
over .eql?
However, even so, this should just be @ems.kind_of?(EmsOpenshift)
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.
refer == over .eql? However, even so, this should just be @ems.kind_of?(EmsOpenshift)
sure, will do "kind_of"
<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush. |
add05df
to
5fe910c
Compare
<gemfile_checker />@JPrause @jvlcek Gemfile changes detected in commit abonas@5fe910c. Please review. |
@Fryguy / @blomquisg can this be merged please? |
@@ -702,6 +702,10 @@ def get_form_vars | |||
@edit[:new][:emstype] = params[:server_emstype] | |||
if ["openstack", "openstack_infra"].include?(params[:server_emstype]) | |||
@edit[:new][:port] = @ems.port ? @ems.port : 5000 | |||
elsif params[:server_emstype] == EmsKubernetes.ems_type | |||
@edit[:new][:port] = @ems.port ? @ems.port : EmsKubernetes.new.port |
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.
@abonas I think this should be a constant, EmsKubernetes::DEFAULT_PORT and have dafault_value_for use that constant. I don't see the need to instantiate an object here.
This can be fixed in a followup PR.
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.
@abonas I think this should be a constant, EmsKubernetes::DEFAULT_PORT and have dafault_value_for use that constant. I don't see the need to instantiate an object here.
This can be fixed in a followup PR.
@jrafanie , ack. lets get this merged and I'll fix it separately. (I filed an issue so it won't be lost)
LGTM. |
cc @Fryguy, please do final review |
<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush. |
5fe910c
to
35309e3
Compare
<gemfile_checker />@JPrause @jvlcek Gemfile changes detected in commit abonas@35309e3. Please review. |
35309e3
to
cb5418a
Compare
<gemfile_checker />@JPrause @jvlcek Gemfile changes detected in commit abonas@cb5418a. Please review. |
cb5418a
to
8c78bb9
Compare
<gemfile_checker />@JPrause @jvlcek Gemfile changes detected in commit abonas@8c78bb9. Please review. |
8c78bb9
to
9c0cd6b
Compare
<gemfile_checker />@JPrause @jvlcek Gemfile changes detected in commit abonas@9c0cd6b. Please review. |
it needs to be rebased against #2891 |
This change contains: provider, parser, refresher, refresh worker, persistence of container_project and container_route and autofill of default port values for both containers providers in the UI It also contains the relevant automation class.
9c0cd6b
to
506e369
Compare
rebased and contains the additional openshift class in automation. |
<gemfile_checker />@JPrause @jvlcek Gemfile changes detected in commit abonas@506e369. Please review. |
Checked commit abonas@506e369 with rubocop 0.27.1 |
@Fryguy , this is all yours :) |
Restarted @abonas |
@Fryguy @blomquisg @jrafanie anything prevents this from being merged? |
Contains provider (with a mixin to avoid inheritance from k8s provider), parser, refresher,
refresh worker and persistence of container_project and container_route