1
0
Fork 0

Allow publishing services with type ExternalName

This commit is contained in:
James Callahan 2025-10-09 19:18:04 +11:00 committed by GitHub
parent 13bcdebc89
commit cd028267ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 97 additions and 0 deletions

View file

@ -484,6 +484,11 @@ func (p *Provider) updateIngressStatus(ing *netv1.Ingress, k8sClient Client) err
}
}
case corev1.ServiceTypeExternalName:
ingressStatus = []netv1.IngressLoadBalancerIngress{{
Hostname: service.Spec.ExternalName,
}}
default:
return fmt.Errorf("unsupported service type: %s", service.Spec.Type)
}