Skip to content

Commit ffc923b

Browse files
committed
[golang] replace "golang.org/x/exp/slices" with stdlib one
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
1 parent bfcbc3a commit ffc923b

6 files changed

Lines changed: 6 additions & 7 deletions

File tree

controllers/dataplane/openstackdataplanenodeset_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ package dataplane
1919
import (
2020
"context"
2121
"fmt"
22+
"slices"
2223
"strings"
2324
"time"
2425

2526
"github.com/go-playground/validator/v10"
26-
"golang.org/x/exp/slices"
2727
batchv1 "k8s.io/api/batch/v1"
2828
corev1 "k8s.io/api/core/v1"
2929
rbacv1 "k8s.io/api/rbac/v1"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ require (
4141
github.com/pkg/errors v0.9.1
4242
github.com/rabbitmq/cluster-operator/v2 v2.11.0
4343
go.uber.org/zap v1.27.0
44-
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
4544
gopkg.in/yaml.v3 v3.0.1
4645
k8s.io/api v0.29.15
4746
k8s.io/apimachinery v0.29.15
@@ -94,6 +93,7 @@ require (
9493
github.com/spf13/pflag v1.0.6 // indirect
9594
go.uber.org/multierr v1.11.0 // indirect
9695
golang.org/x/crypto v0.33.0 // indirect
96+
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
9797
golang.org/x/mod v0.20.0 // indirect
9898
golang.org/x/net v0.34.0 // indirect
9999
golang.org/x/oauth2 v0.18.0 // indirect

pkg/dataplane/cert.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ import (
2121
"crypto/sha256"
2222
"encoding/hex"
2323
"fmt"
24+
"slices"
2425
"sort"
2526
"strconv"
2627
"strings"
2728
"time"
2829

29-
"golang.org/x/exp/slices"
30-
3130
corev1 "k8s.io/api/core/v1"
3231
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3332
apimachineryvalidation "k8s.io/apimachinery/pkg/util/validation"

pkg/dataplane/deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ import (
2323
"fmt"
2424
"path"
2525
"reflect"
26+
"slices"
2627
"sort"
2728
"strconv"
2829

2930
batchv1 "k8s.io/api/batch/v1"
3031
corev1 "k8s.io/api/core/v1"
3132

32-
slices "golang.org/x/exp/slices"
3333
k8s_errors "k8s.io/apimachinery/pkg/api/errors"
3434
"k8s.io/apimachinery/pkg/types"
3535
apimachineryvalidation "k8s.io/apimachinery/pkg/util/validation"

pkg/dataplane/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
"fmt"
2222
"os"
2323
"path"
24+
"slices"
2425
"strings"
2526

26-
"golang.org/x/exp/slices"
2727
yaml "gopkg.in/yaml.v3"
2828
k8s_errors "k8s.io/apimachinery/pkg/api/errors"
2929
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

pkg/openstack/ca.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"fmt"
1010
"math"
1111
"os"
12+
"slices"
1213
"time"
1314

1415
certmgrv1 "github.com/cert-manager/cert-manager/pkg/apis/certmanager/v1"
@@ -19,7 +20,6 @@ import (
1920
"github.com/openstack-k8s-operators/lib-common/modules/common/secret"
2021
"github.com/openstack-k8s-operators/lib-common/modules/common/tls"
2122
"github.com/openstack-k8s-operators/lib-common/modules/common/util"
22-
"golang.org/x/exp/slices"
2323
k8s_errors "k8s.io/apimachinery/pkg/api/errors"
2424

2525
corev1 "github.com/openstack-k8s-operators/openstack-operator/apis/core/v1beta1"

0 commit comments

Comments
 (0)