Skip to content

Commit

Permalink
Merge pull request #1458 from saschagrunert/cancel-timeout
Browse files Browse the repository at this point in the history
`crictl run`: Rename `--timeout`/`-t` to `--cancel-timeout`/`-T`
  • Loading branch information
k8s-ci-robot authored Jun 13, 2024
2 parents fc92a8d + 33976da commit 6b68854
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/crictl/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ var runPullFlags = []cli.Flag{
Usage: "Runtime handler to use. Available options are defined by the container runtime.",
},
&cli.DurationFlag{
Name: "timeout",
Aliases: []string{"t"},
Name: "cancel-timeout",
Aliases: []string{"T"},
Usage: "Seconds to wait for a container create request before cancelling the request",
},
&cli.DurationFlag{
Expand Down Expand Up @@ -638,7 +638,7 @@ var runContainerCommand = &cli.Command{
username: c.String("username"),
timeout: c.Duration("pull-timeout"),
},
timeout: c.Duration("timeout"),
timeout: c.Duration("cancel-timeout"),
}

runtimeClient, err := getRuntimeService(c, opts.timeout)
Expand Down

0 comments on commit 6b68854

Please sign in to comment.