Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 138 for cronjob1 (0.2 sec)

  1. pkg/printers/internalversion/printers_test.go

    			expected: []metav1.TableRow{{Cells: []interface{}{"cronjob1", "0/5 * * * ?", "<none>", "False", int64(0), "0s", "0s", "fake-job-container1,fake-job-container2", "fake-job-image1,fake-job-image2", "a=b"}}},
    		},
    		// CronJob with Last Schedule and Age
    		{
    			cronjob: batch.CronJob{
    				ObjectMeta: metav1.ObjectMeta{
    					Name:              "cronjob2",
    					CreationTimestamp: metav1.Time{Time: time.Now().Add(-3e11)},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/client-go/applyconfigurations/batch/v1/cronjob.go

    }
    
    func extractCronJob(cronJob *apibatchv1.CronJob, fieldManager string, subresource string) (*CronJobApplyConfiguration, error) {
    	b := &CronJobApplyConfiguration{}
    	err := managedfields.ExtractInto(cronJob, internal.Parser().Type("io.k8s.api.batch.v1.CronJob"), fieldManager, b, subresource)
    	if err != nil {
    		return nil, err
    	}
    	b.WithName(cronJob.Name)
    	b.WithNamespace(cronJob.Namespace)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 23 17:59:55 UTC 2022
    - 11.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/client-go/applyconfigurations/batch/v1beta1/cronjob.go

    }
    
    func extractCronJob(cronJob *batchv1beta1.CronJob, fieldManager string, subresource string) (*CronJobApplyConfiguration, error) {
    	b := &CronJobApplyConfiguration{}
    	err := managedfields.ExtractInto(cronJob, internal.Parser().Type("io.k8s.api.batch.v1beta1.CronJob"), fieldManager, b, subresource)
    	if err != nil {
    		return nil, err
    	}
    	b.WithName(cronJob.Name)
    	b.WithNamespace(cronJob.Namespace)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 23 17:59:55 UTC 2022
    - 11.9K bytes
    - Viewed (0)
  4. pkg/kube/inject/testdata/inject/cronjob.yaml.injected

                  value: REDIRECT
                - name: ISTIO_META_WORKLOAD_NAME
                  value: hellocron
                - name: ISTIO_META_OWNER
                  value: kubernetes://apis/batch/v2alpha1/namespaces/default/cronjobs/hellocron
                - name: ISTIO_META_MESH_ID
                  value: cluster.local
                - name: TRUST_DOMAIN
                  value: cluster.local
                image: gcr.io/istio-testing/proxyv2:latest
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. pkg/kube/inject/testdata/inject/cronjob.yaml

    apiVersion: batch/v2alpha1
    kind: CronJob
    metadata:
      name: hellocron
    spec:
      schedule: "*/1 * * * *"
      jobTemplate:
        spec:
          template:
            spec:
              containers:
              - name: hello
                image: busybox
                args:
                - /bin/sh
                - -c
                - date; echo Hello from the Kubernetes cluster
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Aug 16 01:43:48 UTC 2019
    - 380 bytes
    - Viewed (0)
  6. api/discovery/apis__batch__v1.json

      "groupVersion": "batch/v1",
      "kind": "APIResourceList",
      "resources": [
        {
          "categories": [
            "all"
          ],
          "kind": "CronJob",
          "name": "cronjobs",
          "namespaced": true,
          "shortNames": [
            "cj"
          ],
          "singularName": "cronjob",
          "storageVersionHash": "sd5LIXh4Fjs=",
          "verbs": [
            "create",
            "delete",
            "deletecollection",
            "get",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 15 18:18:19 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/installer_test.go

    			resources: []metav1.APIResource{
    				{
    					Name:       "cronjobs",
    					Namespaced: true,
    					Kind:       "CronJob",
    					Group:      "batch",
    					Version:    "v1",
    					ShortNames: []string{"cj"},
    					Verbs:      []string{"create", "delete", "deletecollection", "get", "list", "patch", "update", "watch"},
    				},
    				{
    					Name:       "cronjobs/status",
    					Namespaced: true,
    					Kind:       "CronJob",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. pkg/controller/cronjob/utils.go

    		return fmt.Sprintf("unknown(%d)", int(e))
    	}
    }
    
    // inActiveList checks if cronjob's .status.active has a job with the same UID.
    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.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. pkg/controller/cronjob/injection.go

    	CronJob *batchv1.CronJob
    	Updates []batchv1.CronJob
    }
    
    func (c *fakeCJControl) GetCronJob(ctx context.Context, namespace, name string) (*batchv1.CronJob, error) {
    	if name == c.CronJob.Name && namespace == c.CronJob.Namespace {
    		return c.CronJob, nil
    	}
    	return nil, errors.NewNotFound(schema.GroupResource{
    		Group:    "v1beta1",
    		Resource: "cronjobs",
    	}, name)
    }
    
    var _ cjControlInterface = &fakeCJControl{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 22 09:37:31 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  10. pkg/registry/batch/cronjob/strategy_test.go

    				},
    			},
    		},
    	}
    
    	Strategy.PrepareForCreate(ctx, cronJob)
    	if len(cronJob.Status.Active) != 0 {
    		t.Errorf("CronJob does not allow setting status on create")
    	}
    	if cronJob.Generation != 1 {
    		t.Errorf("expected Generation=1, got %d", cronJob.Generation)
    	}
    	errs := Strategy.Validate(ctx, cronJob)
    	if len(errs) != 0 {
    		t.Errorf("Unexpected error validating %v", errs)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top