-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Erez Freiberger
committed
Aug 6, 2017
1 parent
0f62a51
commit a8773d3
Showing
6 changed files
with
144 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
app/models/manageiq/providers/kubernetes/container_manager/options.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
module ManageIQ::Providers::Kubernetes::ContainerManager::Options | ||
extend ActiveSupport::Concern | ||
|
||
def proxy_settings | ||
{ | ||
:http_proxy => { | ||
:label => N_('HTTP Proxy'), | ||
:help_text => N_('HTTP Proxy to connect ManageIQ to the provider. example: http://user:password@my_https_proxy'), | ||
:global_default => VMDB::Util.http_proxy_uri, | ||
}, | ||
} | ||
end | ||
|
||
def advanced_settings | ||
{ | ||
:image_inspector_options => { | ||
:label => N_('Image Inspector Options'), | ||
:help_text => N_('Settings for Image Inspector tool'), | ||
:settings => { | ||
:http_proxy => { | ||
:label => N_('HTTP Proxy'), | ||
:help_text => N_('HTTP Proxy to connect image inspector pods to the internet. example: http://user:password@my_https_proxy'), | ||
}, | ||
:https_proxy => { | ||
:label => N_('HTTPS Proxy'), | ||
:help_text => N_('HTTPS Proxy to connect image inspector pods to the internet. example: https://user:password@my_https_proxy'), | ||
}, | ||
:no_proxy => { | ||
:label => N_('NO Proxy'), | ||
:help_text => N_('NO Proxy lists urls that should\'nt be sent to any proxy. example: my_file_server.org'), | ||
}, | ||
:repository => { | ||
:label => N_('Image-Inspector Repository'), | ||
:help_text => N_('Image-Inspector Repository. example: openshift/image-inspector'), | ||
:global_default => Settings.ems.ems_kubernetes.image_inspector_repository, | ||
}, | ||
:registry => { | ||
:label => N_('Image-Inspector Registry'), | ||
:help_text => N_('Registry to provide the image inspector repository. example: docker.io'), | ||
:global_default => Settings.ems.ems_kubernetes.image_inspector_registry, | ||
}, | ||
:image_tag => { | ||
:label => N_('Image-Inspector Tag'), | ||
:help_text => N_('Image-Inspector image tag. example: 2.1'), | ||
:global_default => ManageIQ::Providers::Kubernetes::ContainerManager::Scanning::Job::INSPECTOR_IMAGE_TAG, | ||
}, | ||
:cve_url => { | ||
:label => N_('CVE location'), | ||
:help_text => N_('Enables defining a URL path prefix for XCCDF file instead of accessing the default location. | ||
example: http://my_file_server.org:3333/xccdf_files/ | ||
Expecting to find com.redhat.rhsa-RHEL7.ds.xml.bz2 file there.'), | ||
# Future versions of image inspector will extend this. | ||
}, | ||
} | ||
} | ||
} | ||
end | ||
|
||
def provider_settings | ||
{ | ||
:proxy_settings => { | ||
:label => N_('Proxy Settings'), | ||
:help_text => N_('Proxy Settings for connection to the provider'), | ||
:settings => proxy_settings, | ||
}, | ||
:advanced_settings => { | ||
:label => N_('Advanced Settings'), | ||
:help_text => N_('Advanced Settings for provider configuration'), | ||
:settings => advanced_settings, | ||
} | ||
} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters