Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,659 for Validate2 (0.18 sec)

  1. pkg/registry/batch/cronjob/strategy.go

    	if !apiequality.Semantic.DeepEqual(newCronJob.Spec, oldCronJob.Spec) {
    		newCronJob.Generation = oldCronJob.Generation + 1
    	}
    }
    
    // Validate validates a new scheduled job.
    func (cronJobStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	cronJob := obj.(*batch.CronJob)
    	opts := pod.GetValidationOptionsFromPodTemplate(&cronJob.Spec.JobTemplate.Spec.Template, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 15:14:03 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. pkg/registry/discovery/endpointslice/strategy.go

    	}
    
    	newEPS.ObjectMeta = ogNewMeta
    	oldEPS.ObjectMeta = ogOldMeta
    
    	dropDisabledFieldsOnUpdate(oldEPS, newEPS)
    	dropTopologyOnV1(ctx, oldEPS, newEPS)
    }
    
    // Validate validates a new EndpointSlice.
    func (endpointSliceStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	endpointSlice := obj.(*discovery.EndpointSlice)
    	err := validation.ValidateEndpointSliceCreate(endpointSlice)
    	return err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 02 10:00:01 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. cmd/object-handlers_test.go

    	}
    
    	// ExecObjectLayerAPIAnonTest - Calls the HTTP API handler using the anonymous request, validates the ErrAccessDeniedResponse,
    	// sets the bucket policy using the policy statement generated from `getWriteOnlyObjectStatement` so that the
    	// unsigned request goes through and its validated again.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/version.go

    			return kubernetesReleaseVersion(body, fetcher)
    		}
    
    		// both the client and the remote version are obtained; validate them and pick a stable version
    		body, err = validateStableVersion(body, clientVersion)
    		if err != nil {
    			return "", err
    		}
    		// Re-validate received version and return.
    		return kubernetesReleaseVersion(body, fetcher)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 10:50:19 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. pkg/registry/flowcontrol/prioritylevelconfiguration/strategy.go

    		newPriorityLevelConfiguration.Generation = oldPriorityLevelConfiguration.Generation + 1
    	}
    	newPriorityLevelConfiguration.Status = oldPriorityLevelConfiguration.Status
    }
    
    // Validate validates a new priority-level.
    func (priorityLevelConfigurationStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	// 1.28 server is not aware of the roundtrip annotation, and will
    	// default any 0 value persisted (for the NominalConcurrencyShares
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 20:55:50 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/convert.go

    	"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions"
    	apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
    )
    
    // NewStructural converts an OpenAPI v3 schema into a structural schema. A pre-validated JSONSchemaProps will
    // not fail on NewStructural. This means that we require that:
    //
    // - items is not an array of schemas
    // - the following fields are not set:
    //   - id
    //   - schema
    //   - $ref
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. cmd/batch-handlers.go

    	}
    	return madmin.BatchJobType("unknown")
    }
    
    // Validate validates the current job, used by 'save()' before
    // persisting the job request
    func (j BatchJobRequest) Validate(ctx context.Context, o ObjectLayer) error {
    	switch {
    	case j.Replicate != nil:
    		return j.Replicate.Validate(ctx, j, o)
    	case j.KeyRotate != nil:
    		return j.KeyRotate.Validate(ctx, j, o)
    	case j.Expire != nil:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 56K bytes
    - Viewed (0)
  8. cmd/kube-apiserver/app/server.go

    				return err
    			}
    			cliflag.PrintFlags(fs)
    
    			// set default options
    			completedOptions, err := s.Complete()
    			if err != nil {
    				return err
    			}
    
    			// validate options
    			if errs := completedOptions.Validate(); len(errs) != 0 {
    				return utilerrors.NewAggregate(errs)
    			}
    			// add feature enablement metrics
    			utilfeature.DefaultMutableFeatureGate.AddMetrics()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 17:44:20 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. pkg/registry/apps/daemonset/strategy.go

    		return
    	}
    	if !apiequality.Semantic.DeepEqual(oldDaemonSet.Spec, newDaemonSet.Spec) {
    		newDaemonSet.Generation = oldDaemonSet.Generation + 1
    	}
    }
    
    // Validate validates a new daemon set.
    func (daemonSetStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	daemonSet := obj.(*apps.DaemonSet)
    	opts := pod.GetValidationOptionsFromPodTemplate(&daemonSet.Spec.Template, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:52:02 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  10. pkg/config/validation/agent/validation.go

    	}
    	return errs
    }
    
    // ValidateZipkinCollector validates the configuration for sending envoy spans to Zipkin
    func ValidateZipkinCollector(z *meshconfig.Tracing_Zipkin) error {
    	return ValidateProxyAddress(strings.Replace(z.GetAddress(), "$(HOST_IP)", "127.0.0.1", 1))
    }
    
    // ValidateDatadogCollector validates the configuration for sending envoy spans to Datadog
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 30.9K bytes
    - Viewed (0)
Back to top