- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 533 for AsSelector (0.26 sec)
-
pkg/kubelet/util/manager/watch_based_manager.go
return &cacheStore{store, sync.Mutex{}, false} } func (c *objectCache) newReflectorLocked(namespace, name string) *objectCacheItem { fieldSelector := fields.Set{"metadata.name": name}.AsSelector().String() listFunc := func(options metav1.ListOptions) (runtime.Object, error) { options.FieldSelector = fieldSelector return c.listObject(namespace, options) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 11.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/labels/selector_test.go
} func TestNilMapIsValid(t *testing.T) { selector := Set(nil).AsSelector() if selector == nil { t.Errorf("Selector for nil set should be Everything") } if !selector.Empty() { t.Errorf("Selector for nil set should be Empty") } } func TestSetIsEmpty(t *testing.T) { if !(Set{}).AsSelector().Empty() { t.Errorf("Empty set should be empty") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 14 16:39:04 UTC 2022 - 29.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/labels/selector.go
type Requirements []Requirement // Selector represents a label selector. type Selector interface { // Matches returns true if this selector matches the given set of labels. Matches(Labels) bool // Empty returns true if this selector does not restrict the selection space. Empty() bool // String returns a human readable string that represents this selector. String() string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 31.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/matching/matching_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 38.2K bytes - Viewed (0) -
operator/cmd/mesh/test-util_test.go
} func mustSelect(t test.Failer, selector map[string]string, labels map[string]string) { t.Helper() kselector := labels2.Set(selector).AsSelectorPreValidated() if !kselector.Matches(labels2.Set(labels)) { t.Fatalf("%v does not select %v", selector, labels) } } func mustNotSelect(t test.Failer, selector map[string]string, labels map[string]string) { t.Helper() kselector := labels2.Set(selector).AsSelectorPreValidated()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 15.3K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/GrammarToTree.kt
DOT -> isSelector = true SAFE_ACCESS -> { collectingFailure(tree.unsupported(node, it, UnsupportedLanguageFeature.SafeNavigation)) } ERROR_ELEMENT -> collectingFailure(tree.parsingError(node, it)) else -> { val isEffectiveSelector = isSelector && tokenType != ERROR_ELEMENT
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 22:06:18 UTC 2024 - 31.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook_test.go
nsSelector := make(map[string]string) for i := 0; i < 100; i++ { nsSelector[fmt.Sprintf("key-%d", i)] = fmt.Sprintf("val-%d", i) } wb := &v1.ValidatingWebhook{ MatchPolicy: &equivalentMatch, NamespaceSelector: &metav1.LabelSelector{MatchLabels: nsSelector}, ObjectSelector: &metav1.LabelSelector{}, Rules: []v1.RuleWithOperations{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 28 19:30:04 UTC 2023 - 32K bytes - Viewed (0) -
pkg/scheduler/framework/types.go
// AffinityTerm is a processed version of v1.PodAffinityTerm. type AffinityTerm struct { Namespaces sets.Set[string] Selector labels.Selector TopologyKey string NamespaceSelector labels.Selector } // Matches returns true if the pod matches the label selector and namespaces or namespace selector. func (at *AffinityTerm) Matches(pod *v1.Pod, nsLabels labels.Set) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 19:28:17 UTC 2024 - 36.7K bytes - Viewed (0) -
pkg/scheduler/testing/framework/fake_listers.go
func (f ControllerLister) List(labels.Selector) ([]*v1.ReplicationController, error) { return f, nil } // GetPodControllers gets the ReplicationControllers that have the selector that match the labels on the given pod func (f ControllerLister) GetPodControllers(pod *v1.Pod) (controllers []*v1.ReplicationController, err error) { var selector labels.Selector for i := range f { controller := f[i]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 20 10:14:08 UTC 2023 - 10.1K bytes - Viewed (0) -
pkg/controller/util/selectors/bimultimap_test.go
return u.selector.Empty() } func (u *useOnceSelector) String() string { return u.selector.String() } func (u *useOnceSelector) Add(r ...pkglabels.Requirement) pkglabels.Selector { u.selector = u.selector.Add(r...) return u } func (u *useOnceSelector) Requirements() (pkglabels.Requirements, bool) { return u.selector.Requirements() } func (u *useOnceSelector) DeepCopySelector() pkglabels.Selector {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 13 01:56:36 UTC 2022 - 16.9K bytes - Viewed (0)