Skip to content

Commit c5b7fbf

Browse files
committed
fixes
1 parent 21dc2cb commit c5b7fbf

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

pkg/context/vm_context.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"context"
2222
"fmt"
2323

24-
clusterv1beta1 "sigs.k8s.io/cluster-api/api/core/v1beta1"
24+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
2525
"sigs.k8s.io/cluster-api/util/deprecated/v1beta1/patch"
2626

2727
infrav1 "sigs.k8s.io/cluster-api-provider-vsphere/apis/v1beta1"
@@ -52,7 +52,7 @@ func (c *VMContext) Patch(ctx context.Context) error {
5252
infrav1.VSphereVMIPAddressClaimsFulfilledV1Beta2Condition,
5353
infrav1.VSphereVMGuestSoftPowerOffSucceededV1Beta2Condition,
5454
infrav1.VSphereVMPCIDevicesDetachedV1Beta2Condition,
55-
clusterv1beta1.PausedV1Beta2Condition,
55+
clusterv1.PausedCondition,
5656
}})
5757
}
5858

test/e2e/anti_affinity_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import (
2727
"github.com/vmware/govmomi/find"
2828
"github.com/vmware/govmomi/vim25/mo"
2929
corev1 "k8s.io/api/core/v1"
30-
clusterv1beta1 "sigs.k8s.io/cluster-api/api/core/v1beta1"
3130
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
3231
"sigs.k8s.io/cluster-api/test/framework"
3332
"sigs.k8s.io/cluster-api/test/framework/clusterctl"
@@ -225,7 +224,7 @@ func FetchWorkerVMsForCluster(ctx context.Context, bootstrapClusterProxy framewo
225224

226225
workerVMs := []infrav1.VSphereVM{}
227226
for _, vm := range vms.Items {
228-
if _, ok := vm.Labels[clusterv1beta1.MachineControlPlaneLabel]; !ok {
227+
if _, ok := vm.Labels[clusterv1.MachineControlPlaneLabel]; !ok {
229228
workerVMs = append(workerVMs, vm)
230229
}
231230
}

test/e2e/data/shared/capi/v1.10/metadata.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
apiVersion: clusterctl.cluster.x-k8s.io/v1alpha3
77
kind: Metadata
88
releaseSeries:
9-
- major: 1
10-
minor: 11
11-
contract: v1beta1
129
- major: 1
1310
minor: 10
1411
contract: v1beta1

test/e2e/gpu_pci_passthrough_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
vim25types "github.com/vmware/govmomi/vim25/types"
2727
corev1 "k8s.io/api/core/v1"
2828
"k8s.io/utils/ptr"
29-
clusterv1beta1 "sigs.k8s.io/cluster-api/api/core/v1beta1"
29+
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
3030
"sigs.k8s.io/cluster-api/test/framework/clusterctl"
3131
capiutil "sigs.k8s.io/cluster-api/util"
3232
)
@@ -77,7 +77,7 @@ var _ = Describe("Cluster creation with GPU devices as PCI passthrough [speciali
7777
func verifyPCIDeviceOnWorkerNodes(clusterName, namespace string) {
7878
list := getVSphereVMsForCluster(clusterName, namespace)
7979
for _, vm := range list.Items {
80-
if _, ok := vm.GetLabels()[clusterv1beta1.MachineControlPlaneLabel]; ok {
80+
if _, ok := vm.GetLabels()[clusterv1.MachineControlPlaneLabel]; ok {
8181
continue
8282
}
8383
finder := find.NewFinder(vsphereClient.Client, false)

0 commit comments

Comments
 (0)