Skip to content

Commit

Permalink
Update operator/controllers/routing_table.go
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
  • Loading branch information
ajanth97 and arschles authored Oct 22, 2021
1 parent 91fb18c commit ee82b08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion operator/controllers/routing_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ func updateRoutingMap(

newCM := routingConfigMap.DeepCopy()
if err := routing.SaveTableToConfigMap(table, newCM); err != nil {
return err
lggr.Error(err, "couldn't save new routing table to ConfigMap", "configMap", routing.ConfigMapRoutingTableName)
return pkgerrs.Wrap(err, "ConfigMap save error")
}
if _, err := k8s.PatchConfigMap(ctx, lggr, cl, routingConfigMap, newCM); err != nil {
lggr.Error(err, "couldn't save new routing table ConfigMap to Kubernetes", "configMap", routing.ConfigMapRoutingTableName)
Expand Down

0 comments on commit ee82b08

Please sign in to comment.