File tree Expand file tree Collapse file tree 4 files changed +3
-86
lines changed
k8s.io/utils/strings/slices Expand file tree Collapse file tree 4 files changed +3
-86
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ package labels
18
18
19
19
import (
20
20
"fmt"
21
+ "slices"
21
22
"sort"
22
23
"strconv"
23
24
"strings"
@@ -27,7 +28,6 @@ import (
27
28
"k8s.io/apimachinery/pkg/util/validation"
28
29
"k8s.io/apimachinery/pkg/util/validation/field"
29
30
"k8s.io/klog/v2"
30
- stringslices "k8s.io/utils/strings/slices"
31
31
)
32
32
33
33
var (
@@ -313,7 +313,7 @@ func (r Requirement) Equal(x Requirement) bool {
313
313
if r .operator != x .operator {
314
314
return false
315
315
}
316
- return stringslices .Equal (r .strValues , x .strValues )
316
+ return slices .Equal (r .strValues , x .strValues )
317
317
}
318
318
319
319
// Empty returns true if the internalSelector doesn't restrict selection space
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
25
25
"net/http"
26
26
"os"
27
27
"path/filepath"
28
+ "slices"
28
29
"strings"
29
30
"testing"
30
31
"time"
@@ -60,7 +61,6 @@ import (
60
61
"k8s.io/kubectl/pkg/scheme"
61
62
"k8s.io/kubectl/pkg/util/openapi"
62
63
"k8s.io/utils/ptr"
63
- "k8s.io/utils/strings/slices"
64
64
"sigs.k8s.io/yaml"
65
65
)
66
66
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -1219,7 +1219,6 @@ k8s.io/utils/path
1219
1219
k8s.io/utils/pointer
1220
1220
k8s.io/utils/ptr
1221
1221
k8s.io/utils/strings
1222
- k8s.io/utils/strings/slices
1223
1222
k8s.io/utils/trace
1224
1223
# sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3
1225
1224
## explicit; go 1.21
You can’t perform that action at this time.
0 commit comments