Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,407 for Validate2 (0.19 sec)

  1. cmd/erasure-metadata-utils_test.go

    	}
    	// List all of all test cases to validate various cases of reduce errors.
    	testCases := []struct {
    		errs        []error
    		ignoredErrs []error
    		err         error
    	}{
    		// Validate if have reduced properly.
    		{[]error{
    			errDiskNotFound,
    			errDiskNotFound,
    			errDiskFull,
    		}, []error{}, errErasureReadQuorum},
    		// Validate if have no consensus.
    		{[]error{
    			errDiskFull,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. pkg/registry/autoscaling/horizontalpodautoscaler/strategy.go

    	newHPA := obj.(*autoscaling.HorizontalPodAutoscaler)
    
    	// create cannot set status
    	newHPA.Status = autoscaling.HorizontalPodAutoscalerStatus{}
    }
    
    // Validate validates a new autoscaler.
    func (autoscalerStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	autoscaler := obj.(*autoscaling.HorizontalPodAutoscaler)
    	return validation.ValidateHorizontalPodAutoscaler(autoscaler)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 04:51:00 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. internal/bucket/replication/replication.go

    			config.Rules[i].DeleteReplication = DeleteReplication{
    				Status: Disabled,
    			}
    		}
    	}
    	return &config, nil
    }
    
    // Validate - validates the replication configuration
    func (c Config) Validate(bucket string, sameTarget bool) error {
    	// replication config can't have more than 1000 rules
    	if len(c.Rules) > 1000 {
    		return errReplicationTooManyRules
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. pkg/registry/flowcontrol/flowschema/strategy.go

    		newFlowSchema.Generation = oldFlowSchema.Generation + 1
    	}
    	newFlowSchema.Status = oldFlowSchema.Status
    }
    
    // Validate validates a new flow-schema.
    func (flowSchemaStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	return validation.ValidateFlowSchema(obj.(*flowcontrol.FlowSchema))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 11:48:22 UTC 2023
    - 6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/labels/labels.go

    }
    
    // AsValidatedSelector converts labels into a selectors.
    // The Set is validated client-side, which allows to catch errors early.
    func (ls Set) AsValidatedSelector() (Selector, error) {
    	return ValidatedSelectorFromSet(ls)
    }
    
    // AsSelectorPreValidated converts labels into a selector, but
    // assumes that labels are already validated and thus doesn't
    // perform any validation.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/filter.go

    			}
    		}
    	}
    	return nil
    }
    
    // IsEmpty returns true if Filter is not specified in the XML
    func (f Filter) IsEmpty() bool {
    	return !f.set
    }
    
    // Validate - validates the filter element
    func (f Filter) Validate() error {
    	if f.IsEmpty() {
    		return errXMLNotWellFormed
    	}
    	// A Filter must have exactly one of Prefix, Tag,
    	// ObjectSize{LessThan,GreaterThan} or And specified.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 27 00:01:20 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. cmd/xl-storage_test.go

    	testCases := []struct {
    		name string
    		err  error
    	}{
    		// Validates input argument cannot be empty.
    		{
    			"",
    			errInvalidArgument,
    		},
    		// Validates if the directory does not exist and
    		// gets automatically created.
    		{
    			tmpDirName,
    			nil,
    		},
    		// Validates if the disk exists as file and returns error
    		// not a directory.
    		{
    			tmpFileName,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  8. pkg/serviceaccount/claims.go

    		return nil, fmt.Errorf("service account token claims could not be validated: %w", err) // safe to pass these errors back to the user
    
    	default:
    		klog.Errorf("service account token claim validation got unexpected error type: %T", err)                         // avoid leaking unexpected information into the logs
    		return nil, errors.New("service account token claims could not be validated due to unexpected validation error") // return an opaque error
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 21:15:10 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  9. pkg/apis/core/validation/validation.go

    }
    
    // validateMatchLabelKeysAndMismatchLabelKeys checks if both matchLabelKeys and mismatchLabelKeys are valid.
    // - validate that all matchLabelKeys and mismatchLabelKeys are valid label names.
    // - validate that the user doens't specify the same key in both matchLabelKeys and labelSelector.
    // - validate that any matchLabelKeys are not duplicated with mismatchLabelKeys.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go

    	errs = append(errs, a.validator.Validate(ctx, u, a.scale)...)
    
    	// validate embedded resources
    	errs = append(errs, schemaobjectmeta.Validate(nil, u.Object, a.structuralSchema, false)...)
    
    	// validate x-kubernetes-list-type "map" and "set" invariant
    	errs = append(errs, structurallisttype.ValidateListSetsAndMaps(nil, a.structuralSchema, u.Object)...)
    
    	// validate x-kubernetes-validations rules
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 21:22:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top