Fixes #47538: Add functionality for manually creating a Job instance from a CronJob

This changeset adds the command `kubectl create job` with the flag `--from-cronjob`, which allows a user to create a Job from a CronJob via the CLI.
This commit is contained in:
Edmund Rhudy
2018-02-15 16:36:25 -05:00
committed by Maciej Szulik
parent 270148d7d9
commit 5b57c2db00
7 changed files with 313 additions and 0 deletions

View File

@@ -115,6 +115,7 @@ func NewCmdCreate(f cmdutil.Factory, out, errOut io.Writer) *cobra.Command {
cmd.AddCommand(NewCmdCreateRoleBinding(f, out))
cmd.AddCommand(NewCmdCreatePodDisruptionBudget(f, out))
cmd.AddCommand(NewCmdCreatePriorityClass(f, out))
cmd.AddCommand(NewCmdCreateJob(f, out))
return cmd
}