- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for extractFromFile (0.13 sec)
-
pkg/kubelet/config/file.go
} } return pods, nil } // extractFromFile parses a file for Pod configuration information. func (s *sourceFile) extractFromFile(filename string) (pod *v1.Pod, err error) { klog.V(3).InfoS("Reading config file", "path", filename) defer func() { if err == nil && pod != nil { objKey, keyErr := cache.MetaNamespaceKeyFunc(pod)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 01 07:19:44 UTC 2021 - 6.2K bytes - Viewed (0) -
pkg/kubelet/config/file_linux.go
} s.watchEvents <- &watchEvent{e.Name, eventType} return nil } func (s *sourceFile) consumeWatchEvent(e *watchEvent) error { switch e.eventType { case podAdd, podModify: pod, err := s.extractFromFile(e.fileName) if err != nil { return fmt.Errorf("can't process config file %q: %v", e.fileName, err) } return s.store.Add(pod) case podDelete:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 17:27:26 UTC 2023 - 3.8K bytes - Viewed (0)