Skip to content

Commit

Permalink
word
Browse files Browse the repository at this point in the history
  • Loading branch information
tanfarming committed Nov 28, 2023
1 parent 3ccc0c8 commit 1b31fd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ita/internal/handlers_customDomain.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func ingress_addCustomDomainRule(fromDomain, customDomain string) error {

if !ingressContainsRetCorsRule(ig) {
customDomainCorsRule := retRootRules[0].DeepCopy()
customDomainCorsRule.Host = cfg.SubDomain + ".cors." + cfg.HubDomain
customDomainCorsRule.Host = cfg.SubDomain + ".cors." + cfg.ClusterDomain
ig.Spec.Rules = append(ig.Spec.Rules, *customDomainCorsRule)
}

Expand Down Expand Up @@ -365,7 +365,7 @@ func ingress_cleanupByDomain(ig *networkingv1.Ingress, domain string) (int, int)

func ingressContainsRetCorsRule(ig *networkingv1.Ingress) bool {
for _, rule := range ig.Spec.Rules {
if rule.Host == cfg.SubDomain+".cors."+cfg.HubDomain {
if rule.Host == cfg.SubDomain+".cors."+cfg.ClusterDomain {
return true
}
}
Expand Down

0 comments on commit 1b31fd6

Please sign in to comment.