From 99800edf6260feaa5b45849d14a38ee71cabc13a Mon Sep 17 00:00:00 2001 From: Kauana Santos Date: Mon, 15 May 2023 11:09:09 -0700 Subject: [PATCH] Set default domain to cluster's domain (#13964) - Set default domain to cluster's domain --- pkg/reconciler/route/config/domain.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/reconciler/route/config/domain.go b/pkg/reconciler/route/config/domain.go index ce42abf6de02..00a9033eff85 100644 --- a/pkg/reconciler/route/config/domain.go +++ b/pkg/reconciler/route/config/domain.go @@ -31,9 +31,12 @@ import ( const ( // DomainConfigName is the config map name for the domain configuration. DomainConfigName = "config-domain" +) + +var ( // DefaultDomain holds the domain that Route's live under by default // when no label selector-based options apply. - DefaultDomain = "svc.cluster.local" + DefaultDomain = "svc." + network.GetClusterDomainName() ) // LabelSelector represents map of {key,value} pairs. A single {key,value} in the