Skip to content

Commit f67205c

Browse files
committed
openshift: set infrastructureRef.Namespace in Cluster object
Failing to set this breaks from CAPI v1.9 onwards.
1 parent 62c73e7 commit f67205c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openshift/pkg/infraclustercontroller/openstackcluster.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ func (r *OpenShiftClusterReconciler) ensureCAPICluster(ctx context.Context, log
462462
cluster.Spec.InfrastructureRef = &corev1.ObjectReference{
463463
Kind: gvk.Kind,
464464
Name: openStackCluster.Name,
465+
Namespace: openStackCluster.Namespace,
465466
APIVersion: gvk.GroupVersion().String(),
466467
}
467468

0 commit comments

Comments
 (0)