mirror of
https://github.com/czhu12/canine.git
synced 2025-12-30 07:39:43 -06:00
fix add ons env variables
This commit is contained in:
@@ -34,8 +34,9 @@ class AddOns::InstallHelmChart
|
||||
end
|
||||
|
||||
def self.get_values(add_on)
|
||||
values = add_on.metadata['template'].keys.each_with_object({}) do |key, values|
|
||||
template = add_on.metadata['template'][key]
|
||||
variables = add_on.metadata['template'] || {}
|
||||
values = variables.keys.each_with_object({}) do |key, values|
|
||||
template = variables[key]
|
||||
if template.is_a?(Hash) && template['type'] == 'size'
|
||||
values[key] = "#{template['value']}#{template['unit']}"
|
||||
else
|
||||
|
||||
@@ -4,9 +4,9 @@ RSpec.configure do |config|
|
||||
Capybara.app_host = 'http://localhost:3000'
|
||||
Capybara.run_server = false
|
||||
Capybara.default_host = 'localhost:3000'
|
||||
|
||||
|
||||
# Override default_url_options if they're set elsewhere
|
||||
Rails.application.routes.default_url_options[:host] = 'localhost:3000'
|
||||
default_url_options[:host] = 'localhost:3000'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user