Skip to content

Commit

Permalink
Merge pull request #678 from k82cn/rn_args
Browse files Browse the repository at this point in the history
Update args to make request & limits align.
  • Loading branch information
volcano-sh-bot authored Jan 25, 2020
2 parents d8a0e0a + a5e3369 commit eb0521f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cli/vsub/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ func InitRunFlags(cmd *cobra.Command) {
cmd.Flags().StringVarP(&launchJobFlags.Namespace, "namespace", "N", "default", "the namespace of job")
cmd.Flags().StringVarP(&launchJobFlags.Name, "name", "n", "", "the name of job")
cmd.Flags().IntVarP(&launchJobFlags.MinAvailable, "min", "m", 1, "the minimal available tasks of job")
cmd.Flags().IntVarP(&launchJobFlags.Replicas, "replicas", "R", 1, "the total tasks of job")
cmd.Flags().StringVarP(&launchJobFlags.Requests, "requests", "r", "cpu=1000m,memory=100Mi", "the resource request of the task")
cmd.Flags().IntVarP(&launchJobFlags.Replicas, "replicas", "r", 1, "the total tasks of job")
cmd.Flags().StringVarP(&launchJobFlags.Requests, "requests", "R", "cpu=1000m,memory=100Mi", "the resource request of the task")
cmd.Flags().StringVarP(&launchJobFlags.Limits, "limits", "L", "cpu=1000m,memory=100Mi", "the resource limit of the task")
cmd.Flags().StringVarP(&launchJobFlags.SchedulerName, "scheduler", "S", "volcano", "the scheduler for this job")
}
Expand Down

0 comments on commit eb0521f

Please sign in to comment.