fix add ons env variables

This commit is contained in:
Chris Zhu
2024-11-22 15:55:08 -08:00
parent 96c8434172
commit 85d6daf0f7
2 changed files with 5 additions and 4 deletions

View File

@@ -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

View File

@@ -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