- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for nodeNameIndexFunc (0.35 sec)
-
pkg/registry/resource/resourceslice/strategy.go
} // Indexers returns the indexers for ResourceSlice. func Indexers() *cache.Indexers { return &cache.Indexers{ storage.FieldIndex("nodeName"): nodeNameIndexFunc, } } func nodeNameIndexFunc(obj interface{}) ([]string, error) { slice, ok := obj.(*resource.ResourceSlice) if !ok { return nil, fmt.Errorf("not a ResourceSlice") } return []string{slice.NodeName}, nil }
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/strategy.go
} // 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. func NodeNameIndexFunc(obj interface{}) ([]string, error) { pod, ok := obj.(*api.Pod) if !ok { return nil, fmt.Errorf("not a pod") } return []string{pod.Spec.NodeName}, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 17:51:48 UTC 2024 - 29.8K bytes - Viewed (0) -
pkg/registry/core/pod/strategy_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 76.2K bytes - Viewed (0)