summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel/pods.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-04 15:10:36 -0400
committerGitHub <noreply@github.com>2021-10-04 15:10:36 -0400
commita866a2f159f94976277d8a3a9459724af0b0f62f (patch)
tree341b34bcd9dc87efada13a522bb21c31097fef8a /pkg/domain/infra/tunnel/pods.go
parent2f72f17a114f4e20b56deb2c21908d1d4610919c (diff)
parent21c9dc3c406bb486c44c4a27e5b0497bab1cd40d (diff)
downloadpodman-a866a2f159f94976277d8a3a9459724af0b0f62f.tar.gz
podman-a866a2f159f94976277d8a3a9459724af0b0f62f.tar.bz2
podman-a866a2f159f94976277d8a3a9459724af0b0f62f.zip
Merge pull request #11763 from rhatdan/timeout
Add --time option for podman * rm -f flag
Diffstat (limited to 'pkg/domain/infra/tunnel/pods.go')
-rw-r--r--pkg/domain/infra/tunnel/pods.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/domain/infra/tunnel/pods.go b/pkg/domain/infra/tunnel/pods.go
index 8139216b3..bd3df1aa7 100644
--- a/pkg/domain/infra/tunnel/pods.go
+++ b/pkg/domain/infra/tunnel/pods.go
@@ -169,6 +169,9 @@ func (ic *ContainerEngine) PodRm(ctx context.Context, namesOrIds []string, opts
}
reports := make([]*entities.PodRmReport, 0, len(foundPods))
options := new(pods.RemoveOptions).WithForce(opts.Force)
+ if opts.Timeout != nil {
+ options = options.WithTimeout(*opts.Timeout)
+ }
for _, p := range foundPods {
response, err := pods.Remove(ic.ClientCtx, p.Id, options)
if err != nil {