Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for matchLabelExpressions (0.35 sec)

  1. staging/src/k8s.io/api/testdata/v1.30.0/storage.k8s.io.v1beta1.StorageClass.yaml

    allowVolumeExpansion: true
    allowedTopologies:
    - matchLabelExpressions:
      - key: keyValue
        values:
        - valuesValue
    apiVersion: storage.k8s.io/v1beta1
    kind: StorageClass
    metadata:
      annotations:
        annotationsKey: annotationsValue
      creationTimestamp: "2008-01-01T01:01:01Z"
      deletionGracePeriodSeconds: 10
      deletionTimestamp: "2009-01-01T01:01:01Z"
      finalizers:
      - finalizersValue
      generateName: generateNameValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. pkg/apis/core/v1/helper/helpers.go

    		return true
    	}
    
    	for _, req := range topologySelectorTerms {
    		// nil or empty term selects no objects
    		if len(req.MatchLabelExpressions) == 0 {
    			continue
    		}
    
    		labelSelector, err := TopologySelectorRequirementsAsSelector(req.MatchLabelExpressions)
    		if err != nil || !labelSelector.Matches(lbls) {
    			continue
    		}
    
    		return true
    	}
    
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:03:54 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. pkg/apis/storage/validation/validation.go

    		// TODO (verult) consider improving runtime
    		for _, t := range rawTopologies {
    			if helper.Semantic.DeepEqual(exprMap, t) {
    				allErrs = append(allErrs, field.Duplicate(idxPath.Child("matchLabelExpressions"), ""))
    			}
    		}
    
    		rawTopologies = append(rawTopologies, exprMap)
    	}
    
    	return allErrs
    }
    
    // ValidateCSINode validates a CSINode.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 00:47:13 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    			ObjectMeta: metav1.ObjectMeta{
    				Name: waitClassWithProvisioner,
    			},
    			VolumeBindingMode: &waitMode,
    			Provisioner:       provisioner,
    			AllowedTopologies: []v1.TopologySelectorTerm{
    				{
    					MatchLabelExpressions: []v1.TopologySelectorLabelRequirement{
    						{
    							Key:    nodeLabelKey,
    							Values: []string{nodeLabelValue, "reference-value"},
    						},
    					},
    				},
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  5. pkg/apis/core/zz_generated.deepcopy.go

    func (in *TopologySelectorTerm) DeepCopyInto(out *TopologySelectorTerm) {
    	*out = *in
    	if in.MatchLabelExpressions != nil {
    		in, out := &in.MatchLabelExpressions, &out.MatchLabelExpressions
    		*out = make([]TopologySelectorLabelRequirement, len(*in))
    		for i := range *in {
    			(*in)[i].DeepCopyInto(&(*out)[i])
    		}
    	}
    	return
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/core/v1/zz_generated.deepcopy.go

    func (in *TopologySelectorTerm) DeepCopyInto(out *TopologySelectorTerm) {
    	*out = *in
    	if in.MatchLabelExpressions != nil {
    		in, out := &in.MatchLabelExpressions, &out.MatchLabelExpressions
    		*out = make([]TopologySelectorLabelRequirement, len(*in))
    		for i := range *in {
    			(*in)[i].DeepCopyInto(&(*out)[i])
    		}
    	}
    	return
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.9K bytes
    - Viewed (0)
  7. pkg/apis/core/v1/zz_generated.conversion.go

    }
    
    func autoConvert_v1_TopologySelectorTerm_To_core_TopologySelectorTerm(in *v1.TopologySelectorTerm, out *core.TopologySelectorTerm, s conversion.Scope) error {
    	out.MatchLabelExpressions = *(*[]core.TopologySelectorLabelRequirement)(unsafe.Pointer(&in.MatchLabelExpressions))
    	return nil
    }
    
    // Convert_v1_TopologySelectorTerm_To_core_TopologySelectorTerm is an autogenerated conversion function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 472.1K bytes
    - Viewed (0)
  8. pkg/apis/core/validation/validation.go

    	allErrs := field.ErrorList{}
    	exprMap := make(map[string]sets.Set[string])
    	exprPath := fldPath.Child("matchLabelExpressions")
    
    	// Allow empty MatchLabelExpressions, in case this field becomes optional in the future.
    	for i, req := range term.MatchLabelExpressions {
    		idxPath := exprPath.Index(i)
    		valueSet, exprErrs := validateTopologySelectorLabelRequirement(req, idxPath)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/core/v1/types.go

    	// A list of topology selector requirements by labels.
    	// +optional
    	// +listType=atomic
    	MatchLabelExpressions []TopologySelectorLabelRequirement `json:"matchLabelExpressions,omitempty" protobuf:"bytes,1,rep,name=matchLabelExpressions"`
    }
    
    // A topology selector requirement is a selector that matches given label.
    // This is an alpha feature and may change in the future.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 390.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/core/v1/generated.pb.go

    				return ErrInvalidLengthGenerated
    			}
    			if postIndex > l {
    				return io.ErrUnexpectedEOF
    			}
    			m.MatchLabelExpressions = append(m.MatchLabelExpressions, TopologySelectorLabelRequirement{})
    			if err := m.MatchLabelExpressions[len(m.MatchLabelExpressions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
    				return err
    			}
    			iNdEx = postIndex
    		default:
    			iNdEx = preIndex
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 1.8M bytes
    - Viewed (0)
Back to top