Skip to content

Commit

Permalink
[505] send node_selector to controller instead of provider
Browse files Browse the repository at this point in the history
  • Loading branch information
lidiamokevnina committed Mar 2, 2024
1 parent c182688 commit f2f03f0
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,14 @@ 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, :provider
attributes :name, :manifest, :base_ingress_host, :distro, :image, :node_selector

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

def provider
object.node_selector
end

def image
kubernetes_distribution.image
end
Expand Down

0 comments on commit f2f03f0

Please sign in to comment.