Deprecate extensions/v1beta1.Jobs related stuff

This commit is contained in:
Maciej Szulik
2016-11-07 12:44:51 +01:00
parent 0c7421fb51
commit ed6ede3715
2 changed files with 5 additions and 0 deletions

View File

@@ -228,6 +228,9 @@ func Run(f cmdutil.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer, cmd *cobr
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")
generator, found := generators[generatorName]
if !found {