Skip to content

Commit 6d3524b

Browse files
committed
E2E: Fix log collection for machines
I mistakenly removed the namespace when switching to CAPI v1beta2. The infrastructureRef no longer specifies a namespace since it is implied to be the same as the clusters namespace. However, we still need to set a namespace for the NamespacedName... Signed-off-by: Lennart Jern <[email protected]>
1 parent b9fa78b commit 6d3524b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/shared/common.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ func getOpenStackClusterFromMachine(ctx context.Context, client client.Client, m
169169
}
170170

171171
key = types.NamespacedName{
172-
Name: cluster.Spec.InfrastructureRef.Name,
172+
Name: cluster.Spec.InfrastructureRef.Name,
173+
Namespace: cluster.Namespace,
173174
}
174175
openStackCluster := &infrav1.OpenStackCluster{}
175176
err = client.Get(ctx, key, openStackCluster)

0 commit comments

Comments
 (0)