Skip to content

Commit

Permalink
chore: update ingress/comapre.go watchingNamespac from v2beta1 to v2b…
Browse files Browse the repository at this point in the history
…eta3 (#832)
  • Loading branch information
neverCase committed Jan 11, 2022
1 parent 3040cf5 commit 81d59b5
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 81d59b5

Please sign in to comment.