From 94b972630643b6f4b472a4b03f58fa757d3ca6a5 Mon Sep 17 00:00:00 2001 From: Jakub Guzik Date: Sat, 10 Apr 2021 00:01:05 +0200 Subject: Add network prune filters support to bindings Signed-off-by: Jakub Guzik --- pkg/domain/infra/tunnel/network.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/domain/infra/tunnel') diff --git a/pkg/domain/infra/tunnel/network.go b/pkg/domain/infra/tunnel/network.go index adf34460c..7e59e44c2 100644 --- a/pkg/domain/infra/tunnel/network.go +++ b/pkg/domain/infra/tunnel/network.go @@ -92,5 +92,6 @@ func (ic *ContainerEngine) NetworkExists(ctx context.Context, networkname string // Network prune removes unused cni networks func (ic *ContainerEngine) NetworkPrune(ctx context.Context, options entities.NetworkPruneOptions) ([]*entities.NetworkPruneReport, error) { - return network.Prune(ic.ClientCtx, nil) + opts := new(network.PruneOptions).WithFilters(options.Filters) + return network.Prune(ic.ClientCtx, opts) } -- cgit v1.2.3-54-g00ecf