Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 119 for runtimeclass (0.4 sec)

  1. plugin/pkg/admission/runtimeclass/admission.go

    		}
    	}
    
    	// return the pod and runtimeClass.
    	return pod, runtimeClass, err
    }
    
    func setOverhead(a admission.Attributes, pod *api.Pod, runtimeClass *nodev1.RuntimeClass) (err error) {
    	if runtimeClass == nil || runtimeClass.Overhead == nil {
    		return nil
    	}
    
    	// convert to internal type and assign to pod's Overhead
    	nodeOverhead := &node.Overhead{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 05:53:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. pkg/apis/node/v1alpha1/conversion_test.go

    	const (
    		name        = "puppy"
    		handler     = "heidi"
    		cpuOverhead = "100"
    	)
    	tests := map[string]struct {
    		internal *node.RuntimeClass
    		external *v1alpha1.RuntimeClass
    	}{
    		"fully-specified": {
    			internal: &node.RuntimeClass{
    				ObjectMeta: metav1.ObjectMeta{Name: name},
    				Handler:    handler,
    				Overhead: &node.Overhead{
    					PodFixed: core.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 09 18:13:07 UTC 2019
    - 3.8K bytes
    - Viewed (0)
  3. pkg/registry/node/runtimeclass/strategy.go

    	newRuntimeClass := obj.(*node.RuntimeClass)
    	oldRuntimeClass := old.(*node.RuntimeClass)
    
    	_, _ = newRuntimeClass, oldRuntimeClass
    }
    
    // Validate validates a new RuntimeClass. Validation must check for a correct signature.
    func (strategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	runtimeClass := obj.(*node.RuntimeClass)
    	return validation.ValidateRuntimeClass(runtimeClass)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 09 08:17:32 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/node/v1/generated.proto

    // RuntimeClass.
    message Scheduling {
      // nodeSelector lists labels that must be present on nodes that support this
      // RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
      // node matched by this selector. The RuntimeClass nodeSelector is merged
      // with a pod's existing nodeSelector. Any conflicts will cause the pod to
      // be rejected in admission.
      // +optional
      // +mapType=atomic
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/node/v1/types_swagger_doc_generated.go

    	"scheduling": "scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.",
    }
    
    func (RuntimeClass) SwaggerDoc() map[string]string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 22 00:51:25 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. pkg/apis/node/zz_generated.deepcopy.go

    func (in *RuntimeClass) DeepCopy() *RuntimeClass {
    	if in == nil {
    		return nil
    	}
    	out := new(RuntimeClass)
    	in.DeepCopyInto(out)
    	return out
    }
    
    // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    func (in *RuntimeClass) DeepCopyObject() runtime.Object {
    	if c := in.DeepCopy(); c != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 4K bytes
    - Viewed (0)
  7. pkg/apis/node/types.go

    }
    
    // Scheduling specifies the scheduling constraints for nodes supporting a
    // RuntimeClass.
    type Scheduling struct {
    	// nodeSelector lists labels that must be present on nodes that support this
    	// RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
    	// node matched by this selector. The RuntimeClass nodeSelector is merged
    	// with a pod's existing nodeSelector. Any conflicts will cause the pod to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 22 08:59:25 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  8. pkg/registry/node/runtimeclass/storage/storage.go

    		NewFunc:     func() runtime.Object { return &node.RuntimeClass{} },
    		NewListFunc: func() runtime.Object { return &node.RuntimeClassList{} },
    		ObjectNameFunc: func(obj runtime.Object) (string, error) {
    			return obj.(*node.RuntimeClass).Name, nil
    		},
    		DefaultQualifiedResource:  node.Resource("runtimeclasses"),
    		SingularQualifiedResource: node.Resource("runtimeclass"),
    
    		CreateStrategy: runtimeclass.Strategy,
    		UpdateStrategy: runtimeclass.Strategy,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:13 UTC 2022
    - 2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/node/v1alpha1/generated.proto

    }
    
    // Scheduling specifies the scheduling constraints for nodes supporting a
    // RuntimeClass.
    message Scheduling {
      // nodeSelector lists labels that must be present on nodes that support this
      // RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
      // node matched by this selector. The RuntimeClass nodeSelector is merged
      // with a pod's existing nodeSelector. Any conflicts will cause the pod to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. pkg/kubelet/runtimeclass/runtimeclass_manager.go

    // name (or the default of "" for nil). If the RuntimeClass is not found, it returns an
    // errors.NotFound error.
    func (m *Manager) LookupRuntimeHandler(runtimeClassName *string) (string, error) {
    	if runtimeClassName == nil || *runtimeClassName == "" {
    		// The default RuntimeClass always resolves to the empty runtime handler.
    		return "", nil
    	}
    
    	name := *runtimeClassName
    
    	rc, err := m.lister.Get(name)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 11 19:22:32 UTC 2020
    - 2.3K bytes
    - Viewed (0)
Back to top