Skip to content

Commit

Permalink
Merge pull request #510 from UffizziCloud/feature/509-add-account-met…
Browse files Browse the repository at this point in the history
…adata-to-clusters

[#509] added account_id to create cluster serializer
  • Loading branch information
moklidia authored May 24, 2024
2 parents 025c7be + d44e610 commit ee36eee
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,6 +20,10 @@ def distro
kubernetes_distribution.distro
end

def account_id
object.project.account_id
end

private

def kubernetes_distribution
Expand Down

0 comments on commit ee36eee

Please sign in to comment.