mirror of https://github.com/k3s-io/k3s
Address nits from PR #3423
parent
ff908a0d72
commit
826b61c76d
|
@ -76,7 +76,9 @@ func (c *PodConfig) Channel(source string) chan<- interface{} {
|
|||
return c.mux.Channel(source)
|
||||
}
|
||||
|
||||
func (c *PodConfig) SourceSeen(source string) bool {
|
||||
// IsSourceSeen returns true if the specified source string has previously
|
||||
// been marked as seen.
|
||||
func (c *PodConfig) IsSourceSeen(source string) bool {
|
||||
if c.pods == nil {
|
||||
return false
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ func ParsePodFullName(podFullName string) (podName, podNamespace string, podAnno
|
|||
expectedNumFields := 3
|
||||
actualNumFields := len(parts)
|
||||
if actualNumFields != expectedNumFields {
|
||||
glog.Warningf("found a podFullName (%q) with too few fields: expected %d, actual %d.", podFullName, expectedNumFields, actualNumFields)
|
||||
glog.Errorf("found a podFullName (%q) with too few fields: expected %d, actual %d.", podFullName, expectedNumFields, actualNumFields)
|
||||
return
|
||||
}
|
||||
podName = parts[0]
|
||||
|
|
|
@ -274,7 +274,7 @@ func createAndInitKubelet(kc *KubeletConfig, pc *config.PodConfig) (*kubelet.Kub
|
|||
kc.RegistryBurst,
|
||||
kc.MinimumGCAge,
|
||||
kc.MaxContainerCount,
|
||||
pc.SourceSeen,
|
||||
pc.IsSourceSeen,
|
||||
kc.ClusterDomain,
|
||||
net.IP(kc.ClusterDNS))
|
||||
|
||||
|
|
Loading…
Reference in New Issue