Class: UffizziCore::Api::Cli::V1::Template::CreateForm

Inherits:
Template
  • Object
show all
Includes:
DependencyInjectionConcern
Defined in:
app/forms/uffizzi_core/api/cli/v1/template/create_form.rb

Instance Method Summary collapse

Methods included from DependencyInjectionConcern

#ci_module, #ci_session, #controller_settings_service, #deployment_memory_module, #domain_module, #find_build_parser_module, #find_ingress_parser_module, #find_volume_parser_module, #notification_module, #password_protection_module, #template_memory_module, #user_access_module

Instance Method Details

#check_max_memory_limitObject



8
9
10
11
12
13
# File 'app/forms/uffizzi_core/api/cli/v1/template/create_form.rb', line 8

def check_max_memory_limit
  return if template_memory_module.valid_memory_limit?(self)

  message = template_memory_module.memory_limit_error_message(self)
  errors.add(:payload, message)
end