Skip to content

Commit ab7bac8

Browse files
authored
Merge pull request #10971 from vincepri/bug-fix-cluster-proxy
🐛 test/framework isDockerCluster should check that infra ref is present
2 parents 64c0791 + 9255ede commit ab7bac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/cluster_proxy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ func (p *clusterProxy) isDockerCluster(ctx context.Context, namespace string, na
478478
return cl.Get(ctx, key, cluster)
479479
}, retryableOperationTimeout, retryableOperationInterval).Should(Succeed(), "Failed to get %s", key)
480480

481-
return cluster.Spec.InfrastructureRef.Kind == "DockerCluster"
481+
return cluster.Spec.InfrastructureRef != nil && cluster.Spec.InfrastructureRef.Kind == "DockerCluster"
482482
}
483483

484484
func (p *clusterProxy) fixConfig(ctx context.Context, name string, config *api.Config) {

0 commit comments

Comments
 (0)