mirror of
https://github.com/rancher/k3k.git
synced 2026-03-04 02:31:33 +00:00
check value of cluster.Spec.Expose.Ingress
This commit is contained in:
@@ -106,7 +106,7 @@ func getURLFromService(ctx context.Context, client client.Client, cluster *v1alp
|
||||
nodePort := k3kService.Spec.Ports[0].NodePort
|
||||
url = fmt.Sprintf("https://%s:%d", hostServerIP, nodePort)
|
||||
}
|
||||
if cluster.Spec.Expose.Ingress.Enabled {
|
||||
if cluster.Spec.Expose.Ingress != nil && cluster.Spec.Expose.Ingress.Enabled {
|
||||
var k3kIngress networkingv1.Ingress
|
||||
ingressKey := types.NamespacedName{
|
||||
Name: server.IngressName(cluster.Name),
|
||||
|
||||
Reference in New Issue
Block a user