We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78fb865 commit f54fc8aCopy full SHA for f54fc8a
pkg/daemon/exporter_metric.go
@@ -80,7 +80,7 @@ func (c *Controller) setCniConfigMetric() {
80
}
81
82
func (c *Controller) setDNSSearchMetric() {
83
- file, err := resolvconf.Get()
+ file, err := resolvconf.GetSpecific("/etc/resolv.conf")
84
if err != nil {
85
klog.Errorf("failed to get /etc/resolv.conf content: %v", err)
86
return
@@ -89,7 +89,8 @@ func (c *Controller) setDNSSearchMetric() {
89
90
found := false
91
for _, domain := range domains {
92
- if strings.Contains(domain, "local") {
+ if domain == "." {
93
+ // Ignore the root domain
94
continue
95
96
0 commit comments