You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CLUSTER_DOMAIN is ignored when /etc/resolv.conf is missing #3417
network.GetClusterDomainName() and network.GetServiceHostname() return the value of the CLUSTER_DOMAIN environment variable when it is set, including when /etc/resolv.conf does not exist. #2092 added the variable for code that resolves cluster-local URLs from outside the cluster without access to /etc/resolv.conf, and #3283 made it take precedence over /etc/resolv.conf.
Actual behavior
When /etc/resolv.conf cannot be opened, GetClusterDomainName() returns cluster.local even if CLUSTER_DOMAIN is set. The os.Open error path in GetClusterDomainName returns before getClusterDomainName, which is the only place that reads the variable:
Activity
amarkdotdev commentedon Nov 3, 2026
Opened #3419 (includes #3195 in the same branch). /assign