Skip to content

Commit

Permalink
add prerelease lifecycle tags to batch
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Apr 24, 2020
1 parent f8297af commit 657682b
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 1 deletion.
1 change: 1 addition & 0 deletions staging/src/k8s.io/api/batch/v1beta1/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ go_library(
"types.go",
"types_swagger_doc_generated.go",
"zz_generated.deepcopy.go",
"zz_generated.prerelease-lifecycle.go",
],
importmap = "k8s.io/kubernetes/vendor/k8s.io/api/batch/v1beta1",
importpath = "k8s.io/api/batch/v1beta1",
Expand Down
1 change: 1 addition & 0 deletions staging/src/k8s.io/api/batch/v1beta1/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ limitations under the License.
// +k8s:deepcopy-gen=package
// +k8s:protobuf-gen=package
// +k8s:openapi-gen=true
// +k8s:prerelease-lifecycle-gen=true

package v1beta1 // import "k8s.io/api/batch/v1beta1"
8 changes: 7 additions & 1 deletion staging/src/k8s.io/api/batch/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ package v1beta1

import (
batchv1 "k8s.io/api/batch/v1"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:prerelease-lifecycle-gen:introduced=1.8
// +k8s:prerelease-lifecycle-gen:deprecated=1.22

// JobTemplate describes a template for creating copies of a predefined pod.
type JobTemplate struct {
Expand Down Expand Up @@ -53,6 +55,8 @@ type JobTemplateSpec struct {

// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:prerelease-lifecycle-gen:introduced=1.8
// +k8s:prerelease-lifecycle-gen:deprecated=1.22

// CronJob represents the configuration of a single cron job.
type CronJob struct {
Expand All @@ -74,6 +78,8 @@ type CronJob struct {
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:prerelease-lifecycle-gen:introduced=1.8
// +k8s:prerelease-lifecycle-gen:deprecated=1.22

// CronJobList is a collection of cron jobs.
type CronJobList struct {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 657682b

Please sign in to comment.