Skip to content

Commit 3977cb7

Browse files
authored
Merge pull request #3504 from chrischdi/pr-fixup-incluster-vip-flake
2 parents 3333b08 + 66abd2f commit 3977cb7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

test/e2e/data/infrastructure-vsphere-govmomi/main/ipam/ipam-patch.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ spec:
1212
- apiGroup: ipam.cluster.x-k8s.io
1313
kind: InClusterIPPool
1414
name: ${CLUSTER_NAME}
15+
mtu: 1360
1516
nameservers:
1617
# Note: using 8.8.8.8 may require to set an IP as VSPHERE_SERVER
1718
- ${IPAM_NAMESERVER:-8.8.8.8}
@@ -31,6 +32,7 @@ spec:
3132
- apiGroup: ipam.cluster.x-k8s.io
3233
kind: InClusterIPPool
3334
name: ${CLUSTER_NAME}
35+
mtu: 1360
3436
nameservers:
3537
# Note: using 8.8.8.8 may require to set an IP as VSPHERE_SERVER
3638
- ${IPAM_NAMESERVER:-8.8.8.8}

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)