Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Waleed Malik <ahmedwaleedmalik@gmail.com>
  • Loading branch information
ahmedwaleedmalik committed Apr 26, 2024
1 parent c0bca51 commit 50f2612
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions pkg/cloudprovider/provider/vsphere/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ 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"
"github.com/vmware/govmomi/vim25/types"
"go.uber.org/zap"

clusterv1alpha1 "github.com/kubermatic/machine-controller/pkg/apis/cluster/v1alpha1"

"k8s.io/utils/ptr"
)

var lock sync.Mutex
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/provisioning/all_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50f2612

Please sign in to comment.