- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 42 for MyNamespace (0.19 sec)
-
pkg/scheduler/util/assumecache/assume_cache_test.go
objAccessor, err := meta.Accessor(obj) if err != nil { return nil, err } return []string{objAccessor.GetNamespace()}, nil } tCtx, cache, informer := newTestWithIndexer(t, "myNamespace", namespaceIndexer) // Add a bunch of objects. ns := "ns1" objs := make([]interface{}, 0, 10) for i := 0; i < 10; i++ { obj := makeObj(fmt.Sprintf("test-pvc%v", i), "1", ns) objs = append(objs, obj)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 09:46:58 UTC 2024 - 9.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go
APIVersion: "v1", Kind: "ConfigMap", }, ObjectMeta: metav1.ObjectMeta{ Name: "replicas-test.example.com", Namespace: "mynamespace", ResourceVersion: "1", }, Data: map[string]string{ "coolkey": "mynamespace", }, } configMapParam3 := &v1.ConfigMap{ TypeMeta: metav1.TypeMeta{ APIVersion: "v1", Kind: "ConfigMap", },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 25 01:39:01 UTC 2024 - 63.8K bytes - Viewed (0) -
pkg/printers/internalversion/printers_test.go
ParentRef: &networking.ParentReference{ Group: "mygroup", Resource: "myresource", Namespace: "mynamespace", Name: "myname", }, }, } // Columns: Name, ParentRef, Age expected := []metav1.TableRow{{Cells: []interface{}{"192.168.2.2", "myresource.mygroup/mynamespace/myname", "10y"}}} rows, err := printIPAddress(&ip, printers.GenerateOptions{}) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 14:04:15 UTC 2024 - 218.6K bytes - Viewed (0) -
pilot/pkg/model/sidecar.go
// If there are more than one, pick the first alphabetically. func pickFirstVisibleNamespace(ps *PushContext, byNamespace map[string]*Service, configNamespace string) string { nss := make([]string, 0, len(byNamespace)) for ns := range byNamespace { if ps.IsServiceVisible(byNamespace[ns], configNamespace) { nss = append(nss, ns) } } if len(nss) > 0 { sort.Strings(nss) return nss[0]
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 05 20:32:23 UTC 2024 - 38.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/quota/v1/generic/evaluator.go
if !p.hasSynced() { return nil, p.notReadyErr } return p.delegate.Get(name) } func (p *protectedLister) ByNamespace(namespace string) cache.GenericNamespaceLister { return &protectedNamespaceLister{p.hasSynced, p.notReadyErr, p.delegate.ByNamespace(namespace)} } // protectedNamespaceLister returns notReadyError if hasSynced returns false, otherwise delegates to delegate
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 05 00:02:47 UTC 2023 - 11.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/quota/v1/generic/evaluator_test.go
f.called++ return nil, errFakeLister } func (f *fakeLister) Get(name string) (runtime.Object, error) { f.called++ return nil, errFakeLister } func (f *fakeLister) ByNamespace(namespace string) cache.GenericNamespaceLister { panic("not implemented")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 04 12:53:52 UTC 2020 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go
} var lister cache.GenericNamespaceLister = informer.Lister() if scope == meta.RESTScopeNamespace { lister = informer.Lister().ByNamespace(objectMeta.GetNamespace()) } fetched, err := lister.Get(objectMeta.GetName()) if err != nil { if errors.IsNotFound(err) { return false, nil } return true, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 19K bytes - Viewed (0) -
pkg/apis/flowcontrol/types.go
// is dedicated to a tenant. FlowDistinguisherMethodByNamespaceType FlowDistinguisherMethodType = "ByNamespace" ) // FlowDistinguisherMethod specifies the method of a flow distinguisher. type FlowDistinguisherMethod struct { // `type` is the type of flow distinguisher method // The supported types are "ByUser" and "ByNamespace". // Required. Type FlowDistinguisherMethodType }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 22:22:51 UTC 2023 - 24.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_dispatcher.go
// match a cluster-scoped resource return nil, fmt.Errorf("cannot use namespaced paramRef in policy binding that matches cluster-scoped resources") } paramStore = paramInformer.Lister().ByNamespace(paramsNamespace) } // If the param informer for this admission policy has not yet // had time to perform an initial listing, don't attempt to use // it.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 12.1K bytes - Viewed (0) -
staging/src/k8s.io/api/flowcontrol/v1beta1/types.go
// is dedicated to a tenant. FlowDistinguisherMethodByNamespaceType FlowDistinguisherMethodType = "ByNamespace" ) // FlowDistinguisherMethod specifies the method of a flow distinguisher. type FlowDistinguisherMethod struct { // `type` is the type of flow distinguisher method // The supported types are "ByUser" and "ByNamespace". // Required. Type FlowDistinguisherMethodType `json:"type" protobuf:"bytes,1,opt,name=type"` }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Sep 17 09:27:57 UTC 2023 - 31.2K bytes - Viewed (0)