Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,659 for Validate2 (0.36 sec)

  1. cmd/kubeadm/app/util/pubkeypin/pubkeypin.go

    	return formatSHA256 + ":" + strings.ToLower(hex.EncodeToString(spkiHash[:]))
    }
    
    // allowSHA256 validates a "sha256" format hash and adds a canonical version of it into the Set
    func (s *Set) allowSHA256(hash string) error {
    	// validate that the hash is the right length to be a full SHA-256 hash
    	hashLength := hex.DecodedLen(len(hash))
    	if hashLength != sha256.Size {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 13 11:38:39 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  2. pkg/registry/core/resourcequota/strategy.go

    	newResourcequota := obj.(*api.ResourceQuota)
    	oldResourcequota := old.(*api.ResourceQuota)
    	newResourcequota.Status = oldResourcequota.Status
    }
    
    // Validate validates a new resourcequota.
    func (resourcequotaStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	resourcequota := obj.(*api.ResourceQuota)
    	return validation.ValidateResourceQuota(resourcequota)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 18 17:07:29 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  3. pkg/registry/admissionregistration/validatingadmissionpolicybinding/strategy.go

    	if !apiequality.Semantic.DeepEqual(oldIC.Spec, newIC.Spec) {
    		newIC.Generation = oldIC.Generation + 1
    	}
    }
    
    // Validate validates a new ValidatingAdmissionPolicyBinding.
    func (v *validatingAdmissionPolicyBindingStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	errs := validation.ValidateValidatingAdmissionPolicyBinding(obj.(*admissionregistration.ValidatingAdmissionPolicyBinding))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:29:56 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  4. pkg/registry/core/podtemplate/strategy.go

    	template := obj.(*api.PodTemplate)
    	template.Generation = 1
    	pod.DropDisabledTemplateFields(&template.Template, nil)
    }
    
    // Validate validates a new pod template.
    func (podTemplateStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	template := obj.(*api.PodTemplate)
    	opts := pod.GetValidationOptionsFromPodTemplate(&template.Template, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 14:42:36 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  5. pkg/config/validation/validation.go

    	return validateFuncs[name]
    }
    
    func RegisterValidateFunc(name string, f ValidateFunc) ValidateFunc {
    	// Wrap the original validate function with an extra validate function for object metadata
    	validate := validateMetadata(f)
    	validateFuncs[name] = validate
    	return validate
    }
    
    func validateMetadata(f ValidateFunc) ValidateFunc {
    	return func(config config.Config) (Warning, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  6. pkg/registry/apiserverinternal/storageversion/strategy.go

    	sv := obj.(*apiserverinternal.StorageVersion)
    	sv.Status = old.(*apiserverinternal.StorageVersion).Status
    }
    
    // Validate validates a new storageVersion.
    func (storageVersionStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	sv := obj.(*apiserverinternal.StorageVersion)
    	return validation.ValidateStorageVersion(sv)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  7. internal/bucket/replication/destination.go

    			return fmt.Errorf("unknown storage class %s", dest.StorageClass)
    		}
    	}
    	parsedDest.StorageClass = dest.StorageClass
    	*d = parsedDest
    	return nil
    }
    
    // Validate - validates Resource is for given bucket or not.
    func (d Destination) Validate(bucketName string) error {
    	if !d.IsValid() {
    		return Errorf("invalid destination")
    	}
    
    	if !wildcard.Match(d.Bucket, bucketName) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/WithPluginValidation.groovy

                owner.file("validate-external-gradle-plugin.gradle.kts") << getClass().getResource("validate-external-gradle-plugin.gradle.kts").text
    
                def failsValidation = validations.any { !it.messages.isEmpty() }
                def validation = owner.runner([
                    "--init-script", "validate-external-gradle-plugin.gradle.kts",
                    "validateExternalPlugins",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:13:38 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. pkg/apis/networking/validation/validation.go

    // name is valid.
    func ValidateNetworkPolicyName(name string, prefix bool) []string {
    	return apimachineryvalidation.NameIsDNSSubdomain(name, prefix)
    }
    
    // ValidateNetworkPolicyPort validates a NetworkPolicyPort
    func ValidateNetworkPolicyPort(port *networking.NetworkPolicyPort, portPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 07 14:48:01 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/tasks/execution/FinalizePropertiesTaskExecuter.java

     *
     * Currently, this is applied prior to validation, so that all properties are finalized before their value is validated, however we should finalize and validate any property whose value is used to finalize the value of another property.
     */
    public class FinalizePropertiesTaskExecuter implements TaskExecuter {
        private final TaskExecuter taskExecuter;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 16 18:04:59 UTC 2019
    - 2.3K bytes
    - Viewed (0)
Back to top