diff --git a/pkg/cloudprovider/provider/vsphere/rule.go b/pkg/cloudprovider/provider/vsphere/rule.go index 4fea8e276..b35b1686a 100644 --- a/pkg/cloudprovider/provider/vsphere/rule.go +++ b/pkg/cloudprovider/provider/vsphere/rule.go @@ -23,6 +23,7 @@ import ( "strings" "sync" + "github.com/aws/smithy-go/ptr" "github.com/vmware/govmomi/find" "github.com/vmware/govmomi/object" "github.com/vmware/govmomi/vim25/mo" @@ -30,8 +31,6 @@ import ( "go.uber.org/zap" clusterv1alpha1 "github.com/kubermatic/machine-controller/pkg/apis/cluster/v1alpha1" - - "k8s.io/utils/ptr" ) var lock sync.Mutex @@ -85,10 +84,10 @@ func (p *provider) createOrUpdateVMAntiAffinityRule(ctx context.Context, log *za if info == nil { info = &types.ClusterAntiAffinityRuleSpec{ ClusterRuleInfo: types.ClusterRuleInfo{ - Enabled: ptr.To(true), - Mandatory: ptr.To(false), + Enabled: ptr.Bool(true), + Mandatory: ptr.Bool(false), Name: machineSetName, - UserCreated: ptr.To(true), + UserCreated: ptr.Bool(true), }, } operation = types.ArrayUpdateOperationAdd diff --git a/test/e2e/provisioning/all_e2e_test.go b/test/e2e/provisioning/all_e2e_test.go index 9fb68f82a..ddb57dead 100644 --- a/test/e2e/provisioning/all_e2e_test.go +++ b/test/e2e/provisioning/all_e2e_test.go @@ -869,7 +869,7 @@ func TestVsphereAntiAffinityProvisioningE2E(t *testing.T) { executor: verifyCreateAndDelete, } - testScenario(context.Background(), t, scenario, *testRunIdentifier, params, VSPhereAntiAffinityManifest, false) + testScenario(t, scenario, *testRunIdentifier, params, VSPhereAntiAffinityManifest, false) } // TestVsphereDatastoreClusterProvisioning - is the same as the TestVsphereProvisioning suite but specifies a DatastoreCluster