mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 03:37:46 +08:00
fix create endpoints problem
This commit is contained in:
parent
1939d82a69
commit
e50298a6ad
@ -1169,7 +1169,7 @@ func (s *k8sStore) loopUpdateIngress() {
|
||||
} else {
|
||||
betaIngress, ok := ingress[i].(*betav1.Ingress)
|
||||
if !ok || betaIngress == nil {
|
||||
return
|
||||
continue
|
||||
}
|
||||
superIngress = betaIngress
|
||||
meta = &betaIngress.ObjectMeta
|
||||
|
@ -152,7 +152,7 @@ func (r *Reconciler) Reconcile(req ctrl.Request) (res reconcile.Result, retErr e
|
||||
}
|
||||
|
||||
// create endpoint for component service
|
||||
if len(component.Spec.Ports) == 1 && len(component.Spec.EndpointSource.StaticEndpoints) != 0 {
|
||||
if len(component.Spec.Ports) == 1 && len(component.Spec.EndpointSource.StaticEndpoints) > 1 {
|
||||
svc := services.Items[0]
|
||||
ep := createEndpointsOnlyOnePort(component, svc, component.Status.Endpoints)
|
||||
if ep != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user