- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NodeNameTriggerFunc (0.17 sec)
-
pkg/registry/resource/resourceslice/strategy.go
// Only one index is supported: // https://github.com/kubernetes/kubernetes/blob/3aa8c59fec0bf339e67ca80ea7905c817baeca85/staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go#L346-L350 "nodeName": nodeNameTriggerFunc, } func nodeNameTriggerFunc(obj runtime.Object) string { return obj.(*resource.ResourceSlice).NodeName } // Indexers returns the indexers for ResourceSlice. func Indexers() *cache.Indexers { return &cache.Indexers{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 4.4K bytes - Viewed (0) -
pkg/registry/core/pod/storage/storage.go
} options := &generic.StoreOptions{ RESTOptions: optsGetter, AttrFunc: registrypod.GetAttrs, TriggerFunc: map[string]storage.IndexerFunc{"spec.nodeName": registrypod.NodeNameTriggerFunc}, Indexers: registrypod.Indexers(), } if err := store.CompleteWithOptions(options); err != nil { return PodStorage{}, err } statusStore := *store
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 20 14:29:25 UTC 2023 - 13.7K bytes - Viewed (0) -
pkg/registry/core/pod/strategy.go
} return storage.SelectionPredicate{ Label: label, Field: field, GetAttrs: GetAttrs, IndexFields: indexFields, } } // NodeNameTriggerFunc returns value spec.nodename of given object. func NodeNameTriggerFunc(obj runtime.Object) string { return obj.(*api.Pod).Spec.NodeName } // NodeNameIndexFunc return value spec.nodename of given object.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 17:51:48 UTC 2024 - 29.8K bytes - Viewed (0)