mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Deprecate extensions/v1beta1.Jobs related stuff
This commit is contained in:
parent
0c7421fb51
commit
ed6ede3715
@ -617,6 +617,7 @@ type ThirdPartyResourceDataList struct {
|
|||||||
// +genclient=true
|
// +genclient=true
|
||||||
|
|
||||||
// Job represents the configuration of a single job.
|
// Job represents the configuration of a single job.
|
||||||
|
// DEPRECATED: extensions/v1beta1.Job is deprecated, use batch/v1.Job instead.
|
||||||
type Job struct {
|
type Job struct {
|
||||||
unversioned.TypeMeta `json:",inline"`
|
unversioned.TypeMeta `json:",inline"`
|
||||||
// Standard object's metadata.
|
// Standard object's metadata.
|
||||||
@ -636,6 +637,7 @@ type Job struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// JobList is a collection of jobs.
|
// JobList is a collection of jobs.
|
||||||
|
// DEPRECATED: extensions/v1beta1.JobList is deprecated, use batch/v1.JobList instead.
|
||||||
type JobList struct {
|
type JobList struct {
|
||||||
unversioned.TypeMeta `json:",inline"`
|
unversioned.TypeMeta `json:",inline"`
|
||||||
// Standard list metadata
|
// Standard list metadata
|
||||||
|
@ -228,6 +228,9 @@ func Run(f cmdutil.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer, cmd *cobr
|
|||||||
generatorName = "run-pod/v1"
|
generatorName = "run-pod/v1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if generatorName == "job/v1beta1" {
|
||||||
|
fmt.Fprintf(cmdErr, "DEPRECATED: --generator=job/v1beta1 is deprecated, use job/v1 instead.\n")
|
||||||
|
}
|
||||||
generators := f.Generators("run")
|
generators := f.Generators("run")
|
||||||
generator, found := generators[generatorName]
|
generator, found := generators[generatorName]
|
||||||
if !found {
|
if !found {
|
||||||
|
Loading…
Reference in New Issue
Block a user