Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for PodSchedulingContext (0.38 sec)

  1. pkg/apis/resource/validation/validation_podschedulingcontext_test.go

    	scenarios := map[string]struct {
    		oldScheduling *resource.PodSchedulingContext
    		update        func(schedulingCtx *resource.PodSchedulingContext) *resource.PodSchedulingContext
    		wantFailures  field.ErrorList
    	}{
    		"valid-no-op-update": {
    			oldScheduling: validScheduling,
    			update: func(schedulingCtx *resource.PodSchedulingContext) *resource.PodSchedulingContext {
    				return schedulingCtx
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 09:18:08 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  2. pkg/controller/resourceclaim/controller.go

    				return true, "need to create PodSchedulingContext for scheduled pod"
    			}
    			if err != nil {
    				// Shouldn't happen.
    				return true, fmt.Sprintf("internal error while checking for PodSchedulingContext: %v", err)
    			}
    			if scheduling.Spec.SelectedNode != pod.Spec.NodeName {
    				// Need to update PodSchedulingContext.
    				return true, "need to updated PodSchedulingContext for scheduled pod"
    			}
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  3. pkg/controller/resourceclaim/controller_test.go

    			Name:              pod.Spec.ResourceClaims[0].Name,
    			ResourceClaimName: &generatedTestClaim.Name,
    		})
    		return pod
    	}()
    
    	podSchedulingContext = resourcev1alpha2.PodSchedulingContext{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      testPodName,
    			Namespace: testNamespace,
    			OwnerReferences: []metav1.OwnerReference{
    				{
    					APIVersion: "v1",
    					Kind:       "Pod",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 08:56:16 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/resource/v1alpha2/zz_generated.deepcopy.go

    func (in *PodSchedulingContext) DeepCopyInto(out *PodSchedulingContext) {
    	*out = *in
    	out.TypeMeta = in.TypeMeta
    	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    	in.Spec.DeepCopyInto(&out.Spec)
    	in.Status.DeepCopyInto(&out.Status)
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingContext.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  5. common-protos/k8s.io/api/resource/v1alpha2/generated.proto

      // +optional
      optional bool shareable = 3;
    }
    
    // PodSchedulingContext objects hold information that is needed to schedule
    // a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation
    // mode.
    //
    // This is an alpha type and requires enabling the DynamicResourceAllocation
    // feature gate.
    message PodSchedulingContext {
      // Standard object metadata
      // +optional
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. pkg/apis/resource/validation/validation.go

    		allErrs = append(allErrs, field.TooLongMaxLength(fldPath, len(consumers), maxSize))
    	}
    	return allErrs
    }
    
    // ValidatePodSchedulingContext validates a PodSchedulingContext.
    func ValidatePodSchedulingContexts(schedulingCtx *resource.PodSchedulingContext) field.ErrorList {
    	allErrs := corevalidation.ValidateObjectMeta(&schedulingCtx.ObjectMeta, true, corevalidation.ValidatePodName, field.NewPath("metadata"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  7. pkg/apis/resource/zz_generated.deepcopy.go

    func (in *PodSchedulingContext) DeepCopyInto(out *PodSchedulingContext) {
    	*out = *in
    	out.TypeMeta = in.TypeMeta
    	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    	in.Spec.DeepCopyInto(&out.Spec)
    	in.Status.DeepCopyInto(&out.Status)
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingContext.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 33.8K bytes
    - Viewed (0)
  8. pkg/scheduler/testing/wrappers.go

    }
    
    // PodSchedulingWrapper wraps a PodSchedulingContext inside.
    type PodSchedulingWrapper struct {
    	resourcev1alpha2.PodSchedulingContext
    }
    
    // MakePodSchedulingContexts creates a PodSchedulingContext wrapper.
    func MakePodSchedulingContexts() *PodSchedulingWrapper {
    	return &PodSchedulingWrapper{resourcev1alpha2.PodSchedulingContext{}}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  9. pkg/apis/resource/types.go

    }
    
    // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    
    // PodSchedulingContext objects hold information that is needed to schedule
    // a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation
    // mode.
    //
    // This is an alpha type and requires enabling the DynamicResourceAllocation
    // feature gate.
    type PodSchedulingContext struct {
    	metav1.TypeMeta
    	// Standard object metadata
    	// +optional
    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.go

    // +k8s:prerelease-lifecycle-gen:introduced=1.26
    
    // PodSchedulingContext objects hold information that is needed to schedule
    // a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation
    // mode.
    //
    // This is an alpha type and requires enabling the DynamicResourceAllocation
    // feature gate.
    type PodSchedulingContext struct {
    	metav1.TypeMeta `json:",inline"`
    	// Standard object metadata
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 10:22:35 UTC 2024
    - 30K bytes
    - Viewed (0)
Back to top