Skip to content

Commit

Permalink
Merge pull request #877 from gcs278/OCPBUGS-6698
Browse files Browse the repository at this point in the history
OCPBUGS-6698: Fix conflict error message in ensureNodePortService
  • Loading branch information
openshift-merge-robot committed Feb 1, 2023
2 parents 3d11e8d + 49ffd83 commit e24a381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/operator/controller/ingress/nodeport_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (r *reconciler) ensureNodePortService(ic *operatorv1.IngressController, dep
return false, nil, nil
case !wantService && haveService:
if !ownLBS {
return false, nil, fmt.Errorf("a conflicting nodeport service exists that is not owned by the ingress controller: %s", controller.LoadBalancerServiceName(ic))
return false, nil, fmt.Errorf("a conflicting nodeport service exists that is not owned by the ingress controller: %s", current.Name)
}
if err := r.client.Delete(context.TODO(), current); err != nil {
if !errors.IsNotFound(err) {
Expand All @@ -78,7 +78,7 @@ func (r *reconciler) ensureNodePortService(ic *operatorv1.IngressController, dep
return r.currentNodePortService(ic)
case wantService && haveService:
if !ownLBS {
return false, nil, fmt.Errorf("a conflicting nodeport service exists that is not owned by the ingress controller: %s", controller.LoadBalancerServiceName(ic))
return false, nil, fmt.Errorf("a conflicting nodeport service exists that is not owned by the ingress controller: %s", current.Name)
}
if updated, err := r.updateNodePortService(current, desired); err != nil {
return true, current, fmt.Errorf("failed to update NodePort service: %v", err)
Expand Down

0 comments on commit e24a381

Please sign in to comment.