Allow publishing services with type ExternalName
This commit is contained in:
parent
13bcdebc89
commit
cd028267ef
4 changed files with 97 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue