File tree 3 files changed +3
-4
lines changed
3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ require (
14
14
github.com/open-policy-agent/opa v0.61.0
15
15
github.com/stretchr/testify v1.8.4
16
16
go.uber.org/zap v1.27.0
17
- golang.org/x/exp v0.0.0-20240222234643-814bf88cf225
18
17
k8s.io/api v0.29.2
19
18
k8s.io/apimachinery v0.29.2
20
19
k8s.io/client-go v0.29.2
@@ -138,6 +137,7 @@ require (
138
137
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
139
138
go.uber.org/multierr v1.11.0 // indirect
140
139
golang.org/x/crypto v0.19.0 // indirect
140
+ golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect
141
141
golang.org/x/net v0.19.0 // indirect
142
142
golang.org/x/oauth2 v0.14.0 // indirect
143
143
golang.org/x/sync v0.5.0 // indirect
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ package reporthandling
3
3
import (
4
4
"fmt"
5
5
"hash/fnv"
6
+ "slices"
6
7
7
8
"github.com/kubescape/k8s-interface/workloadinterface"
8
9
"github.com/kubescape/opa-utils/objectsenvelopes"
9
10
"github.com/kubescape/opa-utils/reporthandling/apis"
10
11
"github.com/kubescape/opa-utils/reporthandling/attacktrack/v1alpha1"
11
12
"github.com/mitchellh/mapstructure"
12
- "golang.org/x/exp/slices"
13
13
)
14
14
15
15
const (
Original file line number Diff line number Diff line change 4
4
"sync"
5
5
6
6
"github.com/kubescape/opa-utils/reporthandling/apis"
7
- "golang.org/x/exp/maps"
8
7
)
9
8
10
9
var allListsPool = & sync.Pool {
@@ -62,7 +61,7 @@ func (all *AllLists) Initialize(size int) {
62
61
// Clear remove all items and reset the counters
63
62
func (all * AllLists ) Clear () {
64
63
if all .itemToStatus != nil {
65
- maps . Clear (all .itemToStatus )
64
+ clear (all .itemToStatus )
66
65
all .passed = 0
67
66
all .failed = 0
68
67
all .skipped = 0
You can’t perform that action at this time.
0 commit comments