Skip to content

Commit

Permalink
Set default domain to cluster's domain (knative#13964)
Browse files Browse the repository at this point in the history
- Set default domain to cluster's domain
  • Loading branch information
Kauana Santos authored and skonto committed Oct 5, 2023
1 parent 3a11eef commit c2a810e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/reconciler/route/config/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2a810e

Please sign in to comment.