We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a673bb commit 6449116Copy full SHA for 6449116
pkg/dashboard/route.go
@@ -55,21 +55,7 @@ func (r *routeClient) Get(ctx context.Context, name string) (*v1.Route, error) {
55
56
// List is only used in cache warming up. So here just pass through
57
// to APISIX.
58
-func (r *routeClient) List(ctx context.Context, listOptions ...interface{}) ([]*v1.Route, error) {
59
- var options ListOptions
60
- if len(listOptions) > 0 {
61
- options = listOptions[0].(ListOptions)
62
- }
63
- if options.From == ListFromCache {
64
- log.Debugw("try to list routes in cache",
65
- zap.String("cluster", r.cluster.name),
66
- zap.String("url", r.url),
67
- )
68
- return r.cluster.cache.ListRoutes("label",
69
- options.KindLabel.Kind,
70
- options.KindLabel.Namespace,
71
- options.KindLabel.Name)
72
+func (r *routeClient) List(ctx context.Context, args ...interface{}) ([]*v1.Route, error) {
73
log.Debugw("try to list routes in APISIX",
74
zap.String("cluster", r.cluster.name),
75
zap.String("url", r.url),
0 commit comments