Update deprecation warning for kubectl run

pull/58/head
Maciej Szulik 2018-10-26 16:22:33 +02:00
parent 022c05c141
commit fdcd6de9c0
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ func (o *RunOptions) Run(f cmdutil.Factory, cmd *cobra.Command, args []string) e
// the only supported on a route to simple kubectl run which should mimic
// docker run
if generatorName != generateversioned.RunPodV1GeneratorName {
fmt.Fprintf(o.ErrOut, "kubectl run --generator=%s is DEPRECATED and will be removed in a future version. Use kubectl create instead.\n", generatorName)
fmt.Fprintf(o.ErrOut, "kubectl run --generator=%s is DEPRECATED and will be removed in a future version. Use kubectl run --generator=%s or kubectl create instead.\n", generatorName, generateversioned.RunPodV1GeneratorName)
}
generators := generateversioned.GeneratorFn("run")