Skip to content

Commit

Permalink
feat: improve matching for finding domain for workloads
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelgomesxyz committed Jan 12, 2024
1 parent 6d5850c commit 54b2586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/controlplane.rb
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def find_domain_for(workloads)
route = find_domain_route(domain_data)
next false if route.nil?

workloads.any? { |workload| route["workloadLink"].split("/").last == workload }
workloads.any? { |workload| route["workloadLink"].match?(%r{/org/#{org}/gvc/#{gvc}/workload/#{workload}}) }
end
end

Expand Down

0 comments on commit 54b2586

Please sign in to comment.