- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 76 for watchEvents (0.17 sec)
-
pkg/kubelet/config/file.go
podDelete eventBufferLen = 10 ) type watchEvent struct { fileName string eventType podEventType } type sourceFile struct { path string nodeName types.NodeName period time.Duration store cache.Store fileKeyMapping map[string]string updates chan<- interface{} watchEvents chan *watchEvent } // NewSourceFile watches a config file for changes.
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
eventType = podDelete case (e.Op & fsnotify.Rename) > 0: eventType = podDelete default: // Ignore rest events return nil } 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 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 17:27:26 UTC 2023 - 3.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go
expectedInitialEventsInStrictOrder := func(initialPods []*example.Pod, globalResourceVersion string) []watch.Event { watchEvents := []watch.Event{} for _, initialPod := range initialPods { watchEvents = append(watchEvents, watch.Event{Type: watch.Added, Object: initialPod}) } watchEvents = append(watchEvents, watch.Event{Type: watch.Bookmark, Object: &example.Pod{ ObjectMeta: metav1.ObjectMeta{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 63.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/watch.go
return case <-done: return case <-timeoutCh: return case event, ok := <-ch: if !ok { // End of results. return } metrics.WatchEvents.WithContext(req.Context()).WithLabelValues(kind.Group, kind.Version, kind.Kind).Inc() isWatchListLatencyRecordingRequired := shouldRecordWatchListLatency(event) if err := watchEncoder.Encode(event); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Dec 14 16:37:25 UTC 2023 - 11.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go
Name: "tls_handshake_errors_total", Help: "Number of requests dropped with 'TLS handshake error from' error", StabilityLevel: compbasemetrics.ALPHA, }, ) WatchEvents = compbasemetrics.NewCounterVec( &compbasemetrics.CounterOpts{ Subsystem: APIServerComponent, Name: "watch_events_total", Help: "Number of events sent in watch clients",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 27 07:29:19 UTC 2023 - 35K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/HEAD/core.v1.WatchEvent.pb
Jordan Liggitt <******@****.***> 1645282187 -0500
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Feb 19 15:31:53 UTC 2022 - 129 bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/v1.30.0/core.v1.WatchEvent.pb
SataQiu <******@****.***> 1713430345 +0800
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 08:52:25 UTC 2024 - 129 bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/basic_test.go
select { case watchEvent := <-noxuWatch.ResultChan(): eventMetadata, err := meta.Accessor(watchEvent.Object) if err != nil { t.Fatal(err) } if watchEvent.Type == watch.Bookmark { continue } if watchEvent.Type != watch.Modified { t.Errorf("expected modified event, got %v", watchEvent.Type) break }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 11:35:33 UTC 2024 - 33.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/watch.go
out.Object.Object = in.Object } return nil } func Convert_v1_InternalEvent_To_v1_WatchEvent(in *InternalEvent, out *WatchEvent, s conversion.Scope) error { return Convert_watch_Event_To_v1_WatchEvent((*watch.Event)(in), out, s) } func Convert_v1_WatchEvent_To_watch_Event(in *WatchEvent, out *watch.Event, s conversion.Scope) error { out.Type = watch.EventType(in.Type) if in.Object.Object != nil { out.Object = in.Object.Object
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 18 03:02:16 UTC 2018 - 2.8K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/HEAD/core.v1.WatchEvent.json
Jordan Liggitt <******@****.***> 1645282187 -0500
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Feb 19 15:31:53 UTC 2022 - 190 bytes - Viewed (0)