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
Edit CLUSTER_DOMAIN environment variable support (#3283)
* Edit CLUSTER_DOMAIN environment variable support for custom cluster domains
This change modifies the getClusterDomainName() function to prioritize
the CLUSTER_DOMAIN environment variable over /etc/resolv.conf parsing,
enabling explicit configuration of cluster domains.
This is particularly useful when using service mesh configurations where
the internal DNS domain (e.g., mesh.net) differs from the Kubernetes
cluster domain.
Changes:
- Modified getClusterDomainName() to check CLUSTER_DOMAIN env var first
- Falls back to /etc/resolv.conf parsing if env var is not set
- Updated tests to validate precedence behavior
- Added test cases for custom domain scenarios
* Edit CLUSTER_DOMAIN environment variable support for custom cluster domains
This change modifies the getClusterDomainName() function to prioritize
the CLUSTER_DOMAIN environment variable over /etc/resolv.conf parsing,
enabling explicit configuration of cluster domains.
This is particularly useful when using service mesh configurations where
the internal DNS domain (e.g., mesh.net) differs from the Kubernetes
cluster domain.
Changes:
- Modified getClusterDomainName() to check CLUSTER_DOMAIN env var first
- Falls back to /etc/resolv.conf parsing if env var is not set
- Updated tests to validate precedence behavior
- Added test cases for custom domain scenarios
0 commit comments