From 393dec26f6ef7d805ca84c00dea85cdcfeaf5c9e Mon Sep 17 00:00:00 2001 From: a2ush Date: Tue, 14 Dec 2021 22:42:57 +0900 Subject: [PATCH] Change the name of the constant --- pkg/kubelet/network/dns/dns.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/kubelet/network/dns/dns.go b/pkg/kubelet/network/dns/dns.go index 019a1cad665..cff577bf936 100644 --- a/pkg/kubelet/network/dns/dns.go +++ b/pkg/kubelet/network/dns/dns.go @@ -55,7 +55,7 @@ const ( ) const ( - maxResolveConfLength = 10 * 1 << 20 // 10MB + maxResolvConfLength = 10 * 1 << 20 // 10MB ) // Configurer is used for setting up DNS resolver configuration when launching pods. @@ -230,7 +230,7 @@ func (c *Configurer) CheckLimitsForResolvConf() { // parseResolvConf reads a resolv.conf file from the given reader, and parses // it into nameservers, searches and options, possibly returning an error. func parseResolvConf(reader io.Reader) (nameservers []string, searches []string, options []string, err error) { - file, err := utilio.ReadAtMost(reader, maxResolveConfLength) + file, err := utilio.ReadAtMost(reader, maxResolvConfLength) if err != nil { return nil, nil, nil, err }