- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 140 for cronJob (0.09 sec)
-
pkg/registry/batch/cronjob/strategy.go
// PrepareForCreate clears the status of a scheduled job before creation. func (cronJobStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) { cronJob := obj.(*batch.CronJob) cronJob.Status = batch.CronJobStatus{} cronJob.Generation = 1 pod.DropDisabledTemplateFields(&cronJob.Spec.JobTemplate.Spec.Template, nil) } // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
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/registry/batch/cronjob/storage/storage.go
NewListFunc: func() runtime.Object { return &batch.CronJobList{} }, DefaultQualifiedResource: batch.Resource("cronjobs"), SingularQualifiedResource: batch.Resource("cronjob"), CreateStrategy: cronjob.Strategy, UpdateStrategy: cronjob.Strategy, DeleteStrategy: cronjob.Strategy, ResetFieldsStrategy: cronjob.Strategy,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:19 UTC 2022 - 4.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/installer_test.go
Version: "v1", Kind: "CronJob", }, Verbs: []string{"create", "delete", "deletecollection", "get", "list", "patch", "update", "watch"}, }}, }, }, }, { name: "Test multiple resources and subresources", resources: []metav1.APIResource{ { Name: "cronjobs", Namespaced: true, Kind: "CronJob", Group: "batch",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 18:15:22 UTC 2024 - 12.5K bytes - Viewed (0) -
pkg/apis/batch/v1beta1/defaults_test.go
) func TestSetDefaultCronJob(t *testing.T) { tests := map[string]struct { original *batchv1beta1.CronJob expected *batchv1beta1.CronJob }{ "empty batchv1beta1.CronJob should default batchv1beta1.ConcurrencyPolicy and Suspend": { original: &batchv1beta1.CronJob{}, expected: &batchv1beta1.CronJob{ Spec: batchv1beta1.CronJobSpec{ ConcurrencyPolicy: batchv1beta1.AllowConcurrent,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 08 12:14:37 UTC 2023 - 3.9K bytes - Viewed (0) -
pkg/controller/cronjob/utils_test.go
name string cj *batchv1.CronJob includeSDS bool now time.Time expectedEarliestTime time.Time expectedRecentTime *time.Time expectedTooManyMissed missedSchedulesType wantErr bool }{ { name: "now before next schedule", cj: &batchv1.CronJob{ ObjectMeta: metav1.ObjectMeta{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 03:34:25 UTC 2024 - 22.8K bytes - Viewed (0) -
pkg/registry/batch/cronjob/storage/storage_test.go
} return storage, statusStorage, server } func validNewCronJob() *batch.CronJob { return &batch.CronJob{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", Namespace: metav1.NamespaceDefault, }, Spec: batch.CronJobSpec{ Schedule: "* * * * ?", ConcurrencyPolicy: batch.AllowConcurrent, JobTemplate: batch.JobTemplateSpec{ Spec: batch.JobSpec{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 12 20:55:35 UTC 2019 - 4.4K bytes - Viewed (0) -
pkg/controller/cronjob/utils.go
func inActiveList(cj *batchv1.CronJob, uid types.UID) bool { for _, j := range cj.Status.Active { if j.UID == uid { return true } } return false } // inActiveListByName checks if cronjob's status.active has a job with the same // name and namespace. func inActiveListByName(cj *batchv1.CronJob, job *batchv1.Job) bool { for _, j := range cj.Status.Active {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 03:34:25 UTC 2024 - 10.7K bytes - Viewed (0) -
pkg/controller/cronjob/doc.go
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Package cronjob contains the controller for CronJob objects.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 09:14:12 UTC 2016 - 651 bytes - Viewed (0) -
staging/src/k8s.io/api/batch/v1beta1/types.go
// +k8s:prerelease-lifecycle-gen:deprecated=1.21 // +k8s:prerelease-lifecycle-gen:removed=1.25 // +k8s:prerelease-lifecycle-gen:replacement=batch,v1,CronJob // CronJob represents the configuration of a single cron job. type CronJob struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 07 11:58:57 UTC 2023 - 7.4K bytes - Viewed (0) -
pkg/apis/batch/v1beta1/zz_generated.conversion.go
if err := s.AddGeneratedConversionFunc((*v1beta1.CronJob)(nil), (*batch.CronJob)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_CronJob_To_batch_CronJob(a.(*v1beta1.CronJob), b.(*batch.CronJob), scope) }); err != nil { return err } if err := s.AddGeneratedConversionFunc((*batch.CronJob)(nil), (*v1beta1.CronJob)(nil), func(a, b interface{}, scope conversion.Scope) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 01 20:39:47 UTC 2023 - 11.6K bytes - Viewed (0)