Unverified Commit 727dd667 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #73949 from xichengliudui/fixerrornote

Fix function comment to consistent with its name
parents 29403174 5dd26eca
...@@ -190,7 +190,7 @@ func (c *Configurer) CheckLimitsForResolvConf() { ...@@ -190,7 +190,7 @@ func (c *Configurer) CheckLimitsForResolvConf() {
return return
} }
// parseResolveConf reads a resolv.conf file from the given reader, and parses // parseResolvConf reads a resolv.conf file from the given reader, and parses
// it into nameservers, searches and options, possibly returning an error. // it into nameservers, searches and options, possibly returning an error.
func parseResolvConf(reader io.Reader) (nameservers []string, searches []string, options []string, err error) { func parseResolvConf(reader io.Reader) (nameservers []string, searches []string, options []string, err error) {
file, err := ioutil.ReadAll(reader) file, err := ioutil.ReadAll(reader)
...@@ -280,7 +280,7 @@ func getPodDNSType(pod *v1.Pod) (podDNSType, error) { ...@@ -280,7 +280,7 @@ func getPodDNSType(pod *v1.Pod) (podDNSType, error) {
return podDNSCluster, fmt.Errorf(fmt.Sprintf("invalid DNSPolicy=%v", dnsPolicy)) return podDNSCluster, fmt.Errorf(fmt.Sprintf("invalid DNSPolicy=%v", dnsPolicy))
} }
// Merge DNS options. If duplicated, entries given by PodDNSConfigOption will // mergeDNSOptions merges DNS options. If duplicated, entries given by PodDNSConfigOption will
// overwrite the existing ones. // overwrite the existing ones.
func mergeDNSOptions(existingDNSConfigOptions []string, dnsConfigOptions []v1.PodDNSConfigOption) []string { func mergeDNSOptions(existingDNSConfigOptions []string, dnsConfigOptions []v1.PodDNSConfigOption) []string {
optionsMap := make(map[string]string) optionsMap := make(map[string]string)
......
...@@ -337,7 +337,7 @@ func (g *GenericPLEG) cacheEnabled() bool { ...@@ -337,7 +337,7 @@ func (g *GenericPLEG) cacheEnabled() bool {
return g.cache != nil return g.cache != nil
} }
// Preserve an older cached status' pod IP if the new status has no pod IP // getPodIP preserves an older cached status' pod IP if the new status has no pod IP
// and its sandboxes have exited // and its sandboxes have exited
func (g *GenericPLEG) getPodIP(pid types.UID, status *kubecontainer.PodStatus) string { func (g *GenericPLEG) getPodIP(pid types.UID, status *kubecontainer.PodStatus) string {
if status.IP != "" { if status.IP != "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment