Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,659 for Validate2 (0.26 sec)

  1. pkg/registry/rbac/rolebinding/strategy.go

    	newRoleBinding := obj.(*rbac.RoleBinding)
    	oldRoleBinding := old.(*rbac.RoleBinding)
    
    	_, _ = newRoleBinding, oldRoleBinding
    }
    
    // Validate validates a new RoleBinding. Validation must check for a correct signature.
    func (strategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	roleBinding := obj.(*rbac.RoleBinding)
    	return validation.ValidateRoleBinding(roleBinding)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 14:42:36 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  2. pkg/apis/discovery/validation/validation.go

    	return allErrs
    }
    
    // ValidateEndpointSliceCreate validates an EndpointSlice when it is created.
    func ValidateEndpointSliceCreate(endpointSlice *discovery.EndpointSlice) field.ErrorList {
    	return ValidateEndpointSlice(endpointSlice)
    }
    
    // ValidateEndpointSliceUpdate validates an EndpointSlice when it is updated.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 08:49:15 UTC 2021
    - 7.8K bytes
    - Viewed (0)
  3. pkg/registry/networking/servicecidr/strategy.go

    	newServiceCIDR := obj.(*networking.ServiceCIDR)
    	oldServiceCIDR := old.(*networking.ServiceCIDR)
    
    	_, _ = newServiceCIDR, oldServiceCIDR
    }
    
    // Validate validates a new ServiceCIDR.
    func (serviceCIDRStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	cidrConfig := obj.(*networking.ServiceCIDR)
    	err := validation.ValidateServiceCIDR(cidrConfig)
    	return err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. cmd/batch-rotate.go

    	}
    	if err := r.Encryption.Validate(); err != nil {
    		return err
    	}
    
    	for _, tag := range r.Flags.Filter.Tags {
    		if err := tag.Validate(); err != nil {
    			return err
    		}
    	}
    
    	for _, meta := range r.Flags.Filter.Metadata {
    		if err := meta.Validate(); err != nil {
    			return err
    		}
    	}
    
    	return r.Flags.Retry.Validate()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. pkg/registry/networking/networkpolicy/strategy.go

    	if !reflect.DeepEqual(oldNetworkPolicy.Spec, newNetworkPolicy.Spec) {
    		newNetworkPolicy.Generation = oldNetworkPolicy.Generation + 1
    	}
    }
    
    // Validate validates a new NetworkPolicy.
    func (networkPolicyStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	networkPolicy := obj.(*networking.NetworkPolicy)
    	ops := validation.ValidationOptionsForNetworking(networkPolicy, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 18:19:25 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/discovery/discovery.go

    	// TODO: Print summary info about the CA certificate, along with the checksum signature
    	// we also need an ability for the user to configure the client to validate received CA cert against a checksum
    	config, err := DiscoverValidatedKubeConfig(cfg)
    	if err != nil {
    		return nil, errors.Wrap(err, "couldn't validate the identity of the API Server")
    	}
    
    	// If the users has provided a TLSBootstrapToken use it for the join process.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. pkg/registry/rbac/clusterrole/strategy.go

    	newClusterRole := obj.(*rbac.ClusterRole)
    	oldClusterRole := old.(*rbac.ClusterRole)
    
    	_, _ = newClusterRole, oldClusterRole
    }
    
    // Validate validates a new ClusterRole. Validation must check for a correct signature.
    func (strategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	clusterRole := obj.(*rbac.ClusterRole)
    	opts := validation.ClusterRoleValidationOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:52:02 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/util/NameValidator.java

        private static final char FORBIDDEN_LEADING_AND_TRAILING_CHARACTER = '.';
    
        private NameValidator() { }
    
        /**
         * Validates that a given name string does not contain any forbidden characters.
         */
        public static void validate(String name, String nameDescription, String fixSuggestion) throws InvalidUserDataException {
            logDeprecation();
            if (StringUtils.isEmpty(name)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 07 08:48:39 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  9. pkg/registry/admissionregistration/mutatingwebhookconfiguration/strategy.go

    	if !reflect.DeepEqual(oldIC.Webhooks, newIC.Webhooks) {
    		newIC.Generation = oldIC.Generation + 1
    	}
    }
    
    // Validate validates a new mutatingWebhookConfiguration.
    func (mutatingWebhookConfigurationStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	ic := obj.(*admissionregistration.MutatingWebhookConfiguration)
    	return validation.ValidateMutatingWebhookConfiguration(ic)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 20:14:19 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. cmd/batch-job-common-types.go

    	var tmp retry
    	err := val.Decode(&tmp)
    	if err != nil {
    		return err
    	}
    
    	*r = BatchJobRetry(tmp)
    	r.line, r.col = val.Line, val.Column
    	return nil
    }
    
    // Validate validates input replicate retries.
    func (r BatchJobRetry) Validate() error {
    	if r.Attempts < 0 {
    		return BatchJobYamlErr{
    			line: r.line,
    			col:  r.col,
    			msg:  "Invalid arguments specified",
    		}
    	}
    
    	if r.Delay < 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top