Skip to content

Commit 9f131c6

Browse files
committed
Revert "CARRY: Revert to Go v1.21"
This reverts commit dd74d64.
1 parent 1a99329 commit 9f131c6

File tree

4 files changed

+5
-25
lines changed

4 files changed

+5
-25
lines changed

api/v1alpha7/conversion_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
package v1alpha7
1818

1919
import (
20+
"slices"
2021
"testing"
2122

2223
"github.com/google/go-cmp/cmp"
@@ -31,7 +32,6 @@ import (
3132
"sigs.k8s.io/controller-runtime/pkg/conversion"
3233

3334
infrav1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1beta1"
34-
"sigs.k8s.io/cluster-api-provider-openstack/internal/futures"
3535
testhelpers "sigs.k8s.io/cluster-api-provider-openstack/test/helpers"
3636
)
3737

@@ -98,7 +98,7 @@ func TestFuzzyConversion(t *testing.T) {
9898
},
9999
}
100100

101-
return futures.SlicesConcat(v1alpha7FuzzerFuncs, testhelpers.InfraV1FuzzerFuncs())
101+
return slices.Concat(v1alpha7FuzzerFuncs, testhelpers.InfraV1FuzzerFuncs())
102102
}
103103

104104
t.Run("for OpenStackCluster", runParallel(utilconversion.FuzzTestFunc(utilconversion.FuzzTestFuncInput{

internal/futures/slices.go

Lines changed: 0 additions & 19 deletions
This file was deleted.

pkg/cloud/services/compute/referenced_resources.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import (
2828

2929
infrav1alpha1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha1"
3030
infrav1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1beta1"
31-
"sigs.k8s.io/cluster-api-provider-openstack/internal/futures"
3231
"sigs.k8s.io/cluster-api-provider-openstack/pkg/cloud/services/networking"
3332
"sigs.k8s.io/cluster-api-provider-openstack/pkg/scope"
3433
)
@@ -161,7 +160,7 @@ func ResolveServerSpec(ctx context.Context, scope *scope.WithLogger, k8sClient c
161160
// The tags are a deduplicated combination of the tags specified in the
162161
// OpenStackMachineSpec and the ones specified on the OpenStackCluster.
163162
func InstanceTags(spec *infrav1.OpenStackMachineSpec, openStackCluster *infrav1.OpenStackCluster) []string {
164-
machineTags := futures.SlicesConcat(spec.Tags, openStackCluster.Spec.Tags)
163+
machineTags := slices.Concat(spec.Tags, openStackCluster.Spec.Tags)
165164

166165
seen := make(map[string]struct{}, len(machineTags))
167166
unique := make([]string, 0, len(machineTags))

pkg/cloud/services/networking/port.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"context"
2121
"errors"
2222
"fmt"
23+
"slices"
2324
"strings"
2425
"time"
2526

@@ -33,7 +34,6 @@ import (
3334

3435
infrav1alpha1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha1"
3536
infrav1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1beta1"
36-
"sigs.k8s.io/cluster-api-provider-openstack/internal/futures"
3737
"sigs.k8s.io/cluster-api-provider-openstack/pkg/record"
3838
"sigs.k8s.io/cluster-api-provider-openstack/pkg/scope"
3939
capoerrors "sigs.k8s.io/cluster-api-provider-openstack/pkg/utils/errors"
@@ -469,7 +469,7 @@ func (s *Service) normalizePorts(ports []infrav1.PortOpts, clusterResourceName,
469469
}
470470

471471
// Tags are inherited base tags plus any port-specific tags
472-
normalizedPort.Tags = futures.SlicesConcat(baseTags, port.Tags)
472+
normalizedPort.Tags = slices.Concat(baseTags, port.Tags)
473473

474474
// No Trunk field specified for the port, inherit the machine default
475475
if port.Trunk == nil {

0 commit comments

Comments
 (0)