- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for NamedResourcesResources (0.33 sec)
-
pkg/scheduler/framework/plugins/dynamicresources/structuredparameters_test.go
NamedResources: &resourceapi.NamedResourcesResources{ Instances: []resourceapi.NamedResourcesInstance{{Name: "one"}, {Name: "two"}}, }, }, }, &resourceapi.ResourceSlice{ NodeName: "node-b", DriverName: "driver", ResourceModel: resourceapi.ResourceModel{ NamedResources: &resourceapi.NamedResourcesResources{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 27 09:27:01 UTC 2024 - 34.8K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources/namedresourcesmodel_test.go
resources []*resourceapi.NamedResourcesResources allocations []*resourceapi.NamedResourcesAllocationResult expectModel Model }{ "empty": {}, "nil": { resources: []*resourceapi.NamedResourcesResources{nil}, allocations: []*resourceapi.NamedResourcesAllocationResult{nil}, }, "available": { resources: []*resourceapi.NamedResourcesResources{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 27 09:27:01 UTC 2024 - 7.9K bytes - Viewed (0) -
pkg/apis/resource/structured/namedresources/validation/validation_test.go
resources := &resourceapi.NamedResourcesResources{ Instances: instances, } return resources } func TestValidateResources(t *testing.T) { goodName := "foo" badName := "!@#$%^" quantity := resource.MustParse("1") scenarios := map[string]struct { resources *resourceapi.NamedResourcesResources wantFailures field.ErrorList }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:13 UTC 2024 - 10.4K bytes - Viewed (0) -
pkg/apis/resource/v1alpha2/zz_generated.conversion.go
}); err != nil { return err } if err := s.AddGeneratedConversionFunc((*v1alpha2.NamedResourcesResources)(nil), (*resource.NamedResourcesResources)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1alpha2_NamedResourcesResources_To_resource_NamedResourcesResources(a.(*v1alpha2.NamedResourcesResources), b.(*resource.NamedResourcesResources), scope) }); err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 14 17:07:36 UTC 2024 - 103.6K bytes - Viewed (0) -
pkg/apis/resource/namedresources.go
See the License for the specific language governing permissions and limitations under the License. */ package resource import "k8s.io/apimachinery/pkg/api/resource" // NamedResourcesResources is used in ResourceModel. type NamedResourcesResources struct { // The list of all individual resources instances currently available. Instances []NamedResourcesInstance }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 22 12:18:45 UTC 2024 - 3.8K bytes - Viewed (0) -
staging/src/k8s.io/api/resource/v1alpha2/namedresources.go
limitations under the License. */ package v1alpha2 import ( "k8s.io/apimachinery/pkg/api/resource" ) // NamedResourcesResources is used in ResourceModel. type NamedResourcesResources struct { // The list of all individual resources instances currently available. // // +listType=atomic
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 22 12:18:45 UTC 2024 - 5.1K bytes - Viewed (0) -
staging/src/k8s.io/api/resource/v1alpha2/zz_generated.deepcopy.go
} } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesResources. func (in *NamedResourcesResources) DeepCopy() *NamedResourcesResources { if in == nil { return nil } out := new(NamedResourcesResources) in.DeepCopyInto(out) return out }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 14 17:07:36 UTC 2024 - 33.5K bytes - Viewed (0) -
pkg/registry/resource/resourceslice/strategy_test.go
ObjectMeta: metav1.ObjectMeta{ Name: "valid-class", }, NodeName: "valid-node-name", DriverName: "testdriver.example.com", ResourceModel: resource.ResourceModel{ NamedResources: &resource.NamedResourcesResources{}, }, } func TestClassStrategy(t *testing.T) { if Strategy.NamespaceScoped() { t.Errorf("ResourceSlice must not be namespace scoped") } if Strategy.AllowCreateOnUpdate() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 14 17:07:36 UTC 2024 - 2.3K bytes - Viewed (0) -
pkg/apis/resource/zz_generated.deepcopy.go
} } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedResourcesResources. func (in *NamedResourcesResources) DeepCopy() *NamedResourcesResources { if in == nil { return nil } out := new(NamedResourcesResources) in.DeepCopyInto(out) return out }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 14 17:07:36 UTC 2024 - 33.8K bytes - Viewed (0) -
pkg/registry/resource/resourceslice/storage/storage_test.go
return &resource.ResourceSlice{ ObjectMeta: metav1.ObjectMeta{ Name: name, }, NodeName: name, DriverName: "cdi.example.com", ResourceModel: resource.ResourceModel{ NamedResources: &resource.NamedResourcesResources{}, }, } } func TestCreate(t *testing.T) { storage, server := newStorage(t) defer server.Terminate(t) defer storage.Store.DestroyFunc()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 14 17:07:36 UTC 2024 - 4.1K bytes - Viewed (0)