Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for structuredData (0.45 sec)

  1. pkg/scheduler/framework/plugins/dynamicresources/structuredparameters_test.go

    						allocation := instance1Allocation.DeepCopy()
    						allocation.ResourceHandles[0].StructuredData.VendorClassParameters = runtime.RawExtension{Raw: []byte("class-parameters")}
    						allocation.ResourceHandles[0].StructuredData.VendorClaimParameters = runtime.RawExtension{Raw: []byte("claim-parameters")}
    						allocation.ResourceHandles[0].StructuredData.Results[0].VendorRequestParameters = runtime.RawExtension{Raw: []byte("request-parameters")}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  2. pkg/apis/resource/validation/validation_resourceclaim_test.go

    						{
    							DriverName: "valid",
    							StructuredData: &resource.StructuredResourceHandle{
    								NodeName: "worker",
    							},
    						},
    					},
    				}
    				return claim
    			},
    		},
    		"invalid-add-allocation-structured": {
    			wantFailures: field.ErrorList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/dra/manager.go

    					Uid:            string(claimInfo.ClaimUID),
    					Name:           claimInfo.ClaimName,
    					ResourceHandle: resourceHandle.Data,
    				}
    				if resourceHandle.StructuredData != nil {
    					claim.StructuredResourceHandle = []*resourceapi.StructuredResourceHandle{resourceHandle.StructuredData}
    				}
    				pluginName := resourceHandle.DriverName
    				batches[pluginName] = append(batches[pluginName], claim)
    			}
    
    			return nil
    		})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:23:29 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. pkg/apis/resource/validation/validation.go

    		}
    		if resourceHandle.StructuredData != nil {
    			allErrs = append(allErrs, validateStructuredResourceHandle(resourceHandle.StructuredData, idxPath.Child("structuredData"))...)
    		}
    		if len(resourceHandle.Data) > 0 && resourceHandle.StructuredData != nil {
    			allErrs = append(allErrs, field.Invalid(idxPath, nil, "data and structuredData are mutually exclusive"))
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/resource/v1alpha2/types.go

    	// future, but not reduced.
    	// +optional
    	Data string `json:"data,omitempty" protobuf:"bytes,2,opt,name=data"`
    
    	// If StructuredData is set, then it needs to be used instead of Data.
    	//
    	// +optional
    	StructuredData *StructuredResourceHandle `json:"structuredData,omitempty" protobuf:"bytes,5,opt,name=structuredData"`
    }
    
    // ResourceHandleDataMaxSize represents the maximum size of resourceHandle.data.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 10:22:35 UTC 2024
    - 30K bytes
    - Viewed (0)
  6. pkg/scheduler/testing/wrappers.go

    						NamedResources: &resourcev1alpha2.NamedResourcesAllocationResult{
    							Name: name,
    						},
    					},
    				}
    				resourceHandle.StructuredData.Results = append(resourceHandle.StructuredData.Results, result)
    			}
    		}
    		wrapper.ResourceClaim.Status.Allocation.Shareable = true
    		wrapper.ResourceClaim.Status.Allocation.AvailableOnNodes = &v1.NodeSelector{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/resource/v1alpha2/zz_generated.deepcopy.go

    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    func (in *ResourceHandle) DeepCopyInto(out *ResourceHandle) {
    	*out = *in
    	if in.StructuredData != nil {
    		in, out := &in.StructuredData, &out.StructuredData
    		*out = new(StructuredResourceHandle)
    		(*in).DeepCopyInto(*out)
    	}
    	return
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  8. pkg/apis/resource/zz_generated.deepcopy.go

    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    func (in *ResourceHandle) DeepCopyInto(out *ResourceHandle) {
    	*out = *in
    	if in.StructuredData != nil {
    		in, out := &in.StructuredData, &out.StructuredData
    		*out = new(StructuredResourceHandle)
    		(*in).DeepCopyInto(*out)
    	}
    	return
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 33.8K bytes
    - Viewed (0)
  9. pkg/apis/resource/types.go

    	//
    	// The maximum size of this field is 16KiB. This may get increased in the
    	// future, but not reduced.
    	// +optional
    	Data string
    
    	// If StructuredData is set, then it needs to be used instead of Data.
    	StructuredData *StructuredResourceHandle
    }
    
    // ResourceHandleDataMaxSize represents the maximum size of resourceHandle.data.
    const ResourceHandleDataMaxSize = 16 * 1024
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/resource/v1alpha2/types_swagger_doc_generated.go

    	"structuredData": "If StructuredData is set, then it needs to be used instead of Data.",
    }
    
    func (ResourceHandle) SwaggerDoc() map[string]string {
    	return map_ResourceHandle
    }
    
    var map_ResourceModel = map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 22.4K bytes
    - Viewed (0)
Back to top