Skip to content

Commit 6014dd4

Browse files
committed
Use Go slices package instead of k8s.io/utils/strings/slices
Use the functions provided by the Go standard library slices package since Go 1.21 instead of the deprecated functions in the k8s.io/utils/strings/slices package.
1 parent eaf7f69 commit 6014dd4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config/tests/jobs/jobs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import (
2929
"path"
3030
"path/filepath"
3131
"regexp"
32+
"slices"
3233
"sort"
3334
"strings"
3435
"testing"
@@ -38,7 +39,6 @@ import (
3839
"k8s.io/apimachinery/pkg/api/resource"
3940
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
4041
"k8s.io/apimachinery/pkg/util/sets"
41-
"k8s.io/utils/strings/slices"
4242

4343
prowapi "sigs.k8s.io/prow/pkg/apis/prowjobs/v1"
4444
cfg "sigs.k8s.io/prow/pkg/config"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ require (
8282
k8s.io/client-go v0.25.9
8383
k8s.io/code-generator v0.25.9
8484
k8s.io/klog/v2 v2.90.1
85-
k8s.io/utils v0.0.0-20230209194617-a36077c30491
85+
k8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect
8686
knative.dev/pkg v0.0.0-20230221145627-8efb3485adcf // indirect
8787
sigs.k8s.io/controller-runtime v0.12.3
8888
sigs.k8s.io/controller-tools v0.9.2

hack/cluster-migration/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ import (
2323
"fmt"
2424
"log"
2525
"os"
26+
"slices"
2627
"sort"
2728
"strings"
2829

2930
v1 "k8s.io/api/core/v1"
30-
"k8s.io/utils/strings/slices"
3131
cfg "sigs.k8s.io/prow/pkg/config"
3232
)
3333

0 commit comments

Comments
 (0)