Skip to content

Commit 8799f5f

Browse files
committed
e2e: fixup flake while claiming VIPs
1 parent 3333b08 commit 8799f5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/framework/ip/incluster.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,10 @@ func getVirtualMachineIPAddresses(ctx context.Context, folderName string, vSpher
342342
func (h *inCluster) claimIPAddress(ctx context.Context) (_ *ipamv1.IPAddress, _ *ipamv1.IPAddressClaim, err error) {
343343
claim := &ipamv1.IPAddressClaim{
344344
ObjectMeta: metav1.ObjectMeta{
345-
Name: "ipclaim-" + rand.String(32),
346-
Namespace: metav1.NamespaceDefault,
347-
Labels: h.labels,
348-
Annotations: map[string]string{},
345+
GenerateName: "ipclaim-",
346+
Namespace: metav1.NamespaceDefault,
347+
Labels: h.labels,
348+
Annotations: map[string]string{},
349349
},
350350
Spec: ipamv1.IPAddressClaimSpec{
351351
PoolRef: corev1.TypedLocalObjectReference{

0 commit comments

Comments
 (0)