Code refactoring for bpa operator
[icn.git] / cmd / bpa-operator / vendor / k8s.io / api / batch / v2alpha1 / generated.proto
1 /*
2 Copyright The Kubernetes Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17
18 // This file was autogenerated by go-to-protobuf. Do not edit it manually!
19
20 syntax = 'proto2';
21
22 package k8s.io.api.batch.v2alpha1;
23
24 import "k8s.io/api/batch/v1/generated.proto";
25 import "k8s.io/api/core/v1/generated.proto";
26 import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
27 import "k8s.io/apimachinery/pkg/runtime/generated.proto";
28 import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
29
30 // Package-wide variables from generator "generated".
31 option go_package = "v2alpha1";
32
33 // CronJob represents the configuration of a single cron job.
34 message CronJob {
35   // Standard object's metadata.
36   // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
37   // +optional
38   optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
39
40   // Specification of the desired behavior of a cron job, including the schedule.
41   // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
42   // +optional
43   optional CronJobSpec spec = 2;
44
45   // Current status of a cron job.
46   // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
47   // +optional
48   optional CronJobStatus status = 3;
49 }
50
51 // CronJobList is a collection of cron jobs.
52 message CronJobList {
53   // Standard list metadata.
54   // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
55   // +optional
56   optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
57
58   // items is the list of CronJobs.
59   repeated CronJob items = 2;
60 }
61
62 // CronJobSpec describes how the job execution will look like and when it will actually run.
63 message CronJobSpec {
64   // The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
65   optional string schedule = 1;
66
67   // Optional deadline in seconds for starting the job if it misses scheduled
68   // time for any reason.  Missed jobs executions will be counted as failed ones.
69   // +optional
70   optional int64 startingDeadlineSeconds = 2;
71
72   // Specifies how to treat concurrent executions of a Job.
73   // Valid values are:
74   // - "Allow" (default): allows CronJobs to run concurrently;
75   // - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet;
76   // - "Replace": cancels currently running job and replaces it with a new one
77   // +optional
78   optional string concurrencyPolicy = 3;
79
80   // This flag tells the controller to suspend subsequent executions, it does
81   // not apply to already started executions.  Defaults to false.
82   // +optional
83   optional bool suspend = 4;
84
85   // Specifies the job that will be created when executing a CronJob.
86   optional JobTemplateSpec jobTemplate = 5;
87
88   // The number of successful finished jobs to retain.
89   // This is a pointer to distinguish between explicit zero and not specified.
90   // +optional
91   optional int32 successfulJobsHistoryLimit = 6;
92
93   // The number of failed finished jobs to retain.
94   // This is a pointer to distinguish between explicit zero and not specified.
95   // +optional
96   optional int32 failedJobsHistoryLimit = 7;
97 }
98
99 // CronJobStatus represents the current state of a cron job.
100 message CronJobStatus {
101   // A list of pointers to currently running jobs.
102   // +optional
103   repeated k8s.io.api.core.v1.ObjectReference active = 1;
104
105   // Information when was the last time the job was successfully scheduled.
106   // +optional
107   optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScheduleTime = 4;
108 }
109
110 // JobTemplate describes a template for creating copies of a predefined pod.
111 message JobTemplate {
112   // Standard object's metadata.
113   // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
114   // +optional
115   optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
116
117   // Defines jobs that will be created from this template.
118   // https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
119   // +optional
120   optional JobTemplateSpec template = 2;
121 }
122
123 // JobTemplateSpec describes the data a Job should have when created from a template
124 message JobTemplateSpec {
125   // Standard object's metadata of the jobs created from this template.
126   // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
127   // +optional
128   optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
129
130   // Specification of the desired behavior of the job.
131   // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
132   // +optional
133   optional k8s.io.api.batch.v1.JobSpec spec = 2;
134 }
135