Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for metav1validation (0.15 sec)

  1. pkg/registry/storage/csistoragecapacity/strategy.go

    	return false
    }
    
    func hasInvalidLabelValueInLabelSelector(capacity *storage.CSIStorageCapacity) bool {
    	labelSelectorValidationOptions := metav1validation.LabelSelectorValidationOptions{AllowInvalidLabelValueInSelector: false}
    	return len(metav1validation.ValidateLabelSelector(capacity.NodeTopology, labelSelectorValidationOptions, nil)) > 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 08:41:09 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. pkg/registry/policy/poddisruptionbudget/strategy.go

    	return nil
    }
    
    func hasInvalidLabelValueInLabelSelector(pdb *policy.PodDisruptionBudget) bool {
    	if pdb.Spec.Selector != nil {
    		labelSelectorValidationOptions := metav1validation.LabelSelectorValidationOptions{AllowInvalidLabelValueInSelector: false}
    		return len(metav1validation.ValidateLabelSelector(pdb.Spec.Selector, labelSelectorValidationOptions, nil)) > 0
    	}
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 22:25:42 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  3. pkg/registry/rbac/clusterrole/strategy.go

    func hasInvalidLabelValueInLabelSelector(role *rbac.ClusterRole) bool {
    	if role.AggregationRule != nil {
    		labelSelectorValidationOptions := metav1validation.LabelSelectorValidationOptions{AllowInvalidLabelValueInSelector: false}
    		for _, selector := range role.AggregationRule.ClusterRoleSelectors {
    			if len(metav1validation.ValidateLabelSelector(&selector, labelSelectorValidationOptions, nil)) > 0 {
    				return true
    			}
    		}
    	}
    	return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:52:02 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  4. pkg/apis/storagemigration/validation/validation.go

    	"k8s.io/kubernetes/pkg/apis/storagemigration"
    
    	corev1 "k8s.io/api/core/v1"
    	apimachineryvalidation "k8s.io/apimachinery/pkg/api/validation"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	metav1validation "k8s.io/apimachinery/pkg/apis/meta/v1/validation"
    	apivalidation "k8s.io/kubernetes/pkg/apis/core/validation"
    )
    
    func ValidateStorageVersionMigration(svm *storagemigration.StorageVersionMigration) field.ErrorList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. pkg/registry/apps/daemonset/strategy.go

    */
    
    package daemonset
    
    import (
    	"context"
    
    	extensionsv1beta1 "k8s.io/api/extensions/v1beta1"
    	apiequality "k8s.io/apimachinery/pkg/api/equality"
    	apivalidation "k8s.io/apimachinery/pkg/api/validation"
    	metav1validation "k8s.io/apimachinery/pkg/apis/meta/v1/validation"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apimachinery/pkg/util/validation/field"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:52:02 UTC 2022
    - 8.7K bytes
    - Viewed (0)
Back to top