Class: UffizziCore::Controller::CreateCluster::ClusterSerializer

Inherits:
BaseSerializer
  • Object
show all
Includes:
DependencyInjectionConcern
Defined in:
app/serializers/uffizzi_core/controller/create_cluster/cluster_serializer.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

#account_idObject



23
24
25
# File 'app/serializers/uffizzi_core/controller/create_cluster/cluster_serializer.rb', line 23

def 
  object.project.
end

#base_ingress_hostObject



9
10
11
12
13
# File 'app/serializers/uffizzi_core/controller/create_cluster/cluster_serializer.rb', line 9

def base_ingress_host
  managed_dns_zone = controller_settings_service.vcluster_settings_by_vcluster(object).managed_dns_zone

  [object.namespace, managed_dns_zone].join('.')
end

#distroObject



19
20
21
# File 'app/serializers/uffizzi_core/controller/create_cluster/cluster_serializer.rb', line 19

def distro
  kubernetes_distribution.distro
end

#imageObject



15
16
17
# File 'app/serializers/uffizzi_core/controller/create_cluster/cluster_serializer.rb', line 15

def image
  kubernetes_distribution.image
end