- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 404 for GroupResource (0.16 sec)
-
staging/src/k8s.io/apiserver/pkg/quota/v1/generic/evaluator.go
// ObjectCountQuotaResourceNameFor returns the object count quota name for specified groupResource func ObjectCountQuotaResourceNameFor(groupResource schema.GroupResource) corev1.ResourceName { if len(groupResource.Group) == 0 { return corev1.ResourceName("count/" + groupResource.Resource) } return corev1.ResourceName("count/" + groupResource.Resource + "." + groupResource.Group) }
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/apimachinery/pkg/runtime/schema/group_version_test.go
func TestGroupResourceParse(t *testing.T) { tests := []struct { input string out GroupResource }{ {input: "v1", out: GroupResource{Resource: "v1"}}, {input: ".v1", out: GroupResource{Group: "v1"}}, {input: "v1.", out: GroupResource{Resource: "v1"}}, {input: "v1.a", out: GroupResource{Group: "a", Resource: "v1"}}, {input: "b.v1.a", out: GroupResource{Group: "v1.a", Resource: "b"}}, } for i, test := range tests {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 15 01:46:00 UTC 2022 - 7.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/mapper.go
// keys caches the computed key for each GroupResource keys map[schema.GroupResource]string mutex sync.RWMutex } var _ EquivalentResourceMapper = (*equivalentResourceRegistry)(nil) var _ EquivalentResourceRegistry = (*equivalentResourceRegistry)(nil) // NewEquivalentResourceRegistry creates a resource registry that considers all versions of a GroupResource to be equivalent.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 18:26:06 UTC 2019 - 3.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/storage/resource_encoding_config.go
// For now, it returns just the GroupVersion for consistency with old behavior StorageEncodingFor(schema.GroupResource) (schema.GroupVersion, error) // InMemoryEncodingFor returns the groupVersion for the in memory representation the storage should convert to. InMemoryEncodingFor(schema.GroupResource) (schema.GroupVersion, error) } type DefaultResourceEncodingConfig struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 11 23:09:16 UTC 2019 - 3.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/audit/validation/validation.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 15 14:13:07 UTC 2019 - 4.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/storage/storage_factory_test.go
exampleinstall.Install(scheme) testCases := []struct { resource schema.GroupResource servers []string }{ { resource: schema.GroupResource{Group: example.GroupName, Resource: "resource"}, servers: []string{"http://127.0.0.1:10000"}, }, { resource: schema.GroupResource{Group: example.GroupName, Resource: "resource"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 20 13:35:58 UTC 2023 - 7.6K bytes - Viewed (0) -
pkg/kubeapiserver/admission/exclusion/resources.go
// should intercept. // The version is omitted, all versions of the same GroupResource are treated the same. // If a resource is transient, i.e., not persisted in the storage, the resource must be // in either include or excluded list. var included = []schema.GroupResource{ {Group: "", Resource: "bindings"}, {Group: "", Resource: "pods/attach"}, {Group: "", Resource: "pods/binding"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 23:31:18 UTC 2024 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/errors/storage.go
"k8s.io/apiserver/pkg/storage" ) // InterpretListError converts a generic error on a retrieval // operation into the appropriate API error. func InterpretListError(err error, qualifiedResource schema.GroupResource) error { switch { case storage.IsNotFound(err): return errors.NewNotFound(qualifiedResource, "") case storage.IsUnreachable(err), storage.IsRequestTimeout(err):
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 08 15:39:10 UTC 2023 - 4.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/storagebackend/config.go
// ConfigForResource is a Config specialized to a particular `schema.GroupResource` type ConfigForResource struct { // Config is the resource-independent configuration Config // GroupResource is the relevant one GroupResource schema.GroupResource } // ForResource specializes to the given resource func (config *Config) ForResource(resource schema.GroupResource) *ConfigForResource { return &ConfigForResource{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:57:37 UTC 2024 - 4.3K bytes - Viewed (0) -
pkg/quota/v1/evaluator/core/pods_test.go
} return lister, nil } } func newGenericLister(groupResource schema.GroupResource, items []runtime.Object) cache.GenericLister { store := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{"namespace": cache.MetaNamespaceIndexFunc}) for _, item := range items { store.Add(item) } return cache.NewGenericLister(store, groupResource) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 41.6K bytes - Viewed (0)