- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for parseSelectorOrDie (0.19 sec)
-
pkg/registry/core/service/strategy_test.go
}, fieldSelector: fields.ParseSelectorOrDie("metadata.name=test"), expectMatch: true, }, { name: "match on namespace", in: &api.Service{ ObjectMeta: metav1.ObjectMeta{ Name: "test", Namespace: "testns", }, Spec: api.ServiceSpec{ClusterIP: api.ClusterIPNone}, }, fieldSelector: fields.ParseSelectorOrDie("metadata.namespace=testns"),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 32.4K bytes - Viewed (0) -
pkg/registry/core/pod/strategy_test.go
expectMatch bool }{ { in: &api.Pod{ Spec: api.PodSpec{NodeName: "nodeA"}, }, fieldSelector: fields.ParseSelectorOrDie("spec.nodeName=nodeA"), expectMatch: true, }, { in: &api.Pod{ Spec: api.PodSpec{NodeName: "nodeB"}, }, fieldSelector: fields.ParseSelectorOrDie("spec.nodeName=nodeA"), expectMatch: false, }, { in: &api.Pod{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 76.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go
watchTests: []*testWatchStruct{{basePod, false, ""}, {basePodAssigned, true, watch.Added}}, pred: storage.SelectionPredicate{ Label: labels.Everything(), Field: fields.ParseSelectorOrDie("spec.nodeName=bar"), GetAttrs: func(obj runtime.Object) (labels.Set, fields.Set, error) { pod := obj.(*example.Pod) return nil, fields.Set{"spec.nodeName": pod.Spec.NodeName}, nil }, }, }, {
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/storage/testing/store_tests.go
Label: labels.Everything(), Field: fields.ParseSelectorOrDie("metadata.name!=bar"), }, expectedOut: []example.Pod{}, }, { name: "test List with pod name matching with resource version set to current resource version, match=NotOlderThan", prefix: "/pods/first/", pred: storage.SelectionPredicate{ Label: labels.Everything(), Field: fields.ParseSelectorOrDie("metadata.name!=bar"), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 12:45:33 UTC 2024 - 91.4K bytes - Viewed (0)