Skip to content

Commit

Permalink
fix gateway print log panic
Browse files Browse the repository at this point in the history
Signed-off-by: liheng.zms <[email protected]>
  • Loading branch information
zmberg committed Aug 9, 2023
1 parent 3c7f689 commit 5602649
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/trafficrouting/network/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package gateway

import (
"context"
"github.com/openkruise/rollouts/pkg/util"

Check failure on line 18 in pkg/trafficrouting/network/gateway/gateway.go

View workflow job for this annotation

GitHub Actions / golangci-lint

File is not `goimports`-ed (goimports)
"reflect"

rolloutv1alpha1 "github.com/openkruise/rollouts/api/v1alpha1"
Expand Down Expand Up @@ -83,7 +84,7 @@ func (r *gatewayController) EnsureRoutes(ctx context.Context, strategy *rolloutv
klog.Errorf("update %s httpRoute(%s) failed: %s", r.conf.Key, httpRoute.Name, err.Error())
return false, err
}
klog.Infof("%s set HTTPRoute(name:%s weight:%d) success", r.conf.Key, *r.conf.TrafficConf.HTTPRouteName, *weight)
klog.Infof("%s set HTTPRoute(%s) desiredRule(%s) success", r.conf.Key, *r.conf.TrafficConf.HTTPRouteName, util.DumpJSON(desiredRule))
return false, nil
}

Expand Down

0 comments on commit 5602649

Please sign in to comment.