Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 45 for PodSchedulingContext (0.46 sec)

  1. pkg/registry/resource/podschedulingcontext/storage/storage.go

    		NewListFunc:               func() runtime.Object { return &resource.PodSchedulingContextList{} },
    		PredicateFunc:             podschedulingcontext.Match,
    		DefaultQualifiedResource:  resource.Resource("podschedulingcontexts"),
    		SingularQualifiedResource: resource.Resource("podschedulingcontext"),
    
    		CreateStrategy:      podschedulingcontext.Strategy,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 09:18:08 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. 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)
  3. pkg/registry/resource/podschedulingcontext/strategy_test.go

    limitations under the License.
    */
    
    package podschedulingcontext
    
    import (
    	"testing"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	genericapirequest "k8s.io/apiserver/pkg/endpoints/request"
    	"k8s.io/kubernetes/pkg/apis/resource"
    )
    
    var schedulingCtx = &resource.PodSchedulingContext{
    	ObjectMeta: metav1.ObjectMeta{
    		Name:      "valid-pod",
    		Namespace: "default",
    	},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 09:18:08 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. api/discovery/apis__resource.k8s.io__v1alpha2.json

    {
      "apiVersion": "v1",
      "groupVersion": "resource.k8s.io/v1alpha2",
      "kind": "APIResourceList",
      "resources": [
        {
          "kind": "PodSchedulingContext",
          "name": "podschedulingcontexts",
          "namespaced": true,
          "singularName": "podschedulingcontext",
          "storageVersionHash": "qtdNX2rnDEA=",
          "verbs": [
            "create",
            "delete",
            "deletecollection",
            "get",
            "list",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. pkg/registry/resource/podschedulingcontext/storage/storage_test.go

    		t.Fatalf("unexpected error from REST storage: %v", err)
    	}
    	return podSchedulingStorage, statusStorage, server
    }
    
    func validNewPodSchedulingContexts(name, ns string) *resource.PodSchedulingContext {
    	schedulingCtx := &resource.PodSchedulingContext{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      name,
    			Namespace: ns,
    		},
    		Spec: resource.PodSchedulingContextSpec{
    			SelectedNode: "worker",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go

    	// Deleted? That can happen because we ourselves delete the PodSchedulingContext while
    	// working on the pod. This can be ignored.
    	if oldObj != nil && newObj == nil {
    		logger.V(4).Info("PodSchedulingContext got deleted")
    		return framework.QueueSkip, nil
    	}
    
    	oldPodScheduling, newPodScheduling, err := schedutil.As[*resourcev1alpha2.PodSchedulingContext](oldObj, newObj)
    	if err != nil {
    		// Shouldn't happen.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:22:37 UTC 2024
    - 75.9K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    						scheduling: func(in *resourcev1alpha2.PodSchedulingContext) *resourcev1alpha2.PodSchedulingContext {
    							return st.FromPodSchedulingContexts(in).
    								SelectedNode(workerNode.Name).
    								Obj()
    						},
    					},
    				},
    			},
    		},
    		"delayed-allocation-scheduling-finish-concurrent-label-update": {
    			// Use the populated PodSchedulingContext object to select a
    			// node.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. pkg/apis/resource/v1alpha2/zz_generated.conversion.go

    	}); err != nil {
    		return err
    	}
    	if err := s.AddGeneratedConversionFunc((*v1alpha2.PodSchedulingContext)(nil), (*resource.PodSchedulingContext)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v1alpha2_PodSchedulingContext_To_resource_PodSchedulingContext(a.(*v1alpha2.PodSchedulingContext), b.(*resource.PodSchedulingContext), 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)
Back to top