From 9255ede36ff7305b46ea56ab196b1ac18cf93e6b Mon Sep 17 00:00:00 2001 From: Vince Prignano Date: Wed, 31 Jul 2024 10:28:32 -0700 Subject: [PATCH] :bug: test/framework isDockerCluster should check that infra ref is present Signed-off-by: Vince Prignano --- test/framework/cluster_proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/framework/cluster_proxy.go b/test/framework/cluster_proxy.go index 004e7d6ceddb..c32a683d5c41 100644 --- a/test/framework/cluster_proxy.go +++ b/test/framework/cluster_proxy.go @@ -478,7 +478,7 @@ func (p *clusterProxy) isDockerCluster(ctx context.Context, namespace string, na return cl.Get(ctx, key, cluster) }, retryableOperationTimeout, retryableOperationInterval).Should(Succeed(), "Failed to get %s", key) - return cluster.Spec.InfrastructureRef.Kind == "DockerCluster" + return cluster.Spec.InfrastructureRef != nil && cluster.Spec.InfrastructureRef.Kind == "DockerCluster" } func (p *clusterProxy) fixConfig(ctx context.Context, name string, config *api.Config) {