diff --git a/core/app/serializers/uffizzi_core/controller/create_cluster/cluster_serializer.rb b/core/app/serializers/uffizzi_core/controller/create_cluster/cluster_serializer.rb index 33b94eca..76729ec5 100644 --- a/core/app/serializers/uffizzi_core/controller/create_cluster/cluster_serializer.rb +++ b/core/app/serializers/uffizzi_core/controller/create_cluster/cluster_serializer.rb @@ -4,7 +4,7 @@ class UffizziCore::Controller::CreateCluster::ClusterSerializer < UffizziCore::B include UffizziCore::DependencyInjectionConcern include_module_if_exists('UffizziCore::Controller::CreateCluster::ClusterSerializerModule') - attributes :name, :manifest, :base_ingress_host, :distro, :image + attributes :name, :manifest, :base_ingress_host, :distro, :image, :account_id def base_ingress_host managed_dns_zone = controller_settings_service.vcluster_settings_by_vcluster(object).managed_dns_zone @@ -20,6 +20,10 @@ def distro kubernetes_distribution.distro end + def account_id + object.project.account_id + end + private def kubernetes_distribution