- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ValidateCronJobCreate (0.18 sec)
-
pkg/registry/batch/cronjob/strategy.go
cronJob := obj.(*batch.CronJob) opts := pod.GetValidationOptionsFromPodTemplate(&cronJob.Spec.JobTemplate.Spec.Template, nil) return batchvalidation.ValidateCronJobCreate(cronJob, opts) } // WarningsOnCreate returns warnings for the creation of the given object. func (cronJobStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 20 15:14:03 UTC 2023 - 7.3K bytes - Viewed (0) -
pkg/apis/batch/validation/validation.go
} return allErrs } // ValidateCronJobCreate validates a CronJob on creation and returns an ErrorList with any errors. func ValidateCronJobCreate(cronJob *batch.CronJob, opts apivalidation.PodValidationOptions) field.ErrorList { // CronJobs and rcs have the same name validation
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 16:43:24 UTC 2024 - 51.2K bytes - Viewed (0) -
pkg/apis/batch/validation/validation_test.go
Spec: batch.JobSpec{ Template: validPodTemplateSpec, }, }, }, }, } for k, v := range successCases { t.Run(k, func(t *testing.T) { if errs := ValidateCronJobCreate(&v, corevalidation.PodValidationOptions{}); len(errs) != 0 { t.Errorf("expected success for %s: %v", k, errs) } // Update validation should pass same success cases
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 20:49:09 UTC 2024 - 124.3K bytes - Viewed (0)