Skip to content

Commit

Permalink
Make log message more verbose, and add todos to remove these later
Browse files Browse the repository at this point in the history
  • Loading branch information
rfredette committed Jan 26, 2021
1 parent e181c4d commit f6bb5a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/operator/controller/ingress/controller.go
Expand Up @@ -230,9 +230,9 @@ func (r *reconciler) Reconcile(request reconcile.Request) (reconcile.Result, err
return reconcile.Result{Requeue: true}, nil
}

// TODO: remove this fix-up logic in 4.8
if ingress.Status.EndpointPublishingStrategy != nil && ingress.Status.EndpointPublishingStrategy.Type == operatorv1.LoadBalancerServiceStrategyType && ingress.Status.EndpointPublishingStrategy.LoadBalancer == nil {
log.Info("EndpointPublishingStrategy missing LoadBalancer")
// set loadbalancer to external
log.Info("Setting default value for empty status.endpointPublishingStrategy.loadBalancer field", "ingresscontroller", ingress)
ingress.Status.EndpointPublishingStrategy.LoadBalancer = &operatorv1.LoadBalancerStrategy{
Scope: operatorv1.ExternalLoadBalancer,
}
Expand Down
1 change: 1 addition & 0 deletions pkg/operator/controller/ingress/status.go
Expand Up @@ -110,6 +110,7 @@ func MergeConditions(conditions []operatorv1.OperatorCondition, updates ...opera
// Returns the updated condition array.
func PruneConditions(conditions []operatorv1.OperatorCondition) []operatorv1.OperatorCondition {
for i, condition := range conditions {
// TODO: Remove this fix-up logic in 4.8
if condition.Type == "DeploymentDegraded" {
// DeploymentDegraded was removed in 4.6.0
conditions = append(conditions[:i], conditions[i+1:]...)
Expand Down

0 comments on commit f6bb5a8

Please sign in to comment.