mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Change the name of the constant
This commit is contained in:
parent
d775483381
commit
393dec26f6
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user