Skip to content

Commit

Permalink
Merge pull request #10971 from vincepri/bug-fix-cluster-proxy
Browse files Browse the repository at this point in the history
🐛 test/framework isDockerCluster should check that infra ref is present
  • Loading branch information
k8s-ci-robot authored Jul 31, 2024
2 parents 64c0791 + 9255ede commit ab7bac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/framework/cluster_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ab7bac8

Please sign in to comment.