Skip to content

Commit

Permalink
feat: update ingress/comapre.go watchingNamespac v2beta1 to v2beta3
Browse files Browse the repository at this point in the history
  • Loading branch information
neverCase committed Jan 5, 2022
1 parent e40cc31 commit 91c9a74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ingress/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ func (c *Controller) CompareResources(ctx context.Context) error {
defer wg.Done()
// ApisixRoute
opts := v1.ListOptions{}
retRoutes, err := c.kubeClient.APISIXClient.ApisixV2beta1().ApisixRoutes(ns).List(ctx, opts)
retRoutes, err := c.kubeClient.APISIXClient.ApisixV2beta3().ApisixRoutes(ns).List(ctx, opts)
if err != nil {
log.Error(err.Error())
ctx.Done()
} else {
for _, r := range retRoutes.Items {
tc, err := c.translator.TranslateRouteV2beta1NotStrictly(&r)
tc, err := c.translator.TranslateRouteV2beta3NotStrictly(&r)
if err != nil {
log.Error(err.Error())
ctx.Done()
Expand Down

0 comments on commit 91c9a74

Please sign in to comment.