Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
  • Loading branch information
lingsamuel committed Aug 2, 2022
1 parent c907d7f commit 5b89467
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions pkg/providers/ingress/translation/annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ import (
"go.uber.org/zap"

"github.com/apache/apisix-ingress-controller/pkg/log"
annotations2 "github.com/apache/apisix-ingress-controller/pkg/providers/ingress/translation/annotations"
"github.com/apache/apisix-ingress-controller/pkg/providers/ingress/translation/annotations"
apisix "github.com/apache/apisix-ingress-controller/pkg/types/apisix/v1"
)

var (
_handlers = []annotations2.Handler{
annotations2.NewCorsHandler(),
annotations2.NewIPRestrictionHandler(),
annotations2.NewRewriteHandler(),
annotations2.NewRedirectHandler(),
annotations2.NewForwardAuthHandler(),
annotations2.NewBasicAuthHandler(),
annotations2.NewKeyAuthHandler(),
annotations2.NewCSRFHandler(),
_handlers = []annotations.Handler{
annotations.NewCorsHandler(),
annotations.NewIPRestrictionHandler(),
annotations.NewRewriteHandler(),
annotations.NewRedirectHandler(),
annotations.NewForwardAuthHandler(),
annotations.NewBasicAuthHandler(),
annotations.NewKeyAuthHandler(),
annotations.NewCSRFHandler(),
}
)

func (t *translator) TranslateAnnotations(anno map[string]string) apisix.Plugins {
extractor := annotations2.NewExtractor(anno)
extractor := annotations.NewExtractor(anno)
plugins := make(apisix.Plugins)
for _, handler := range _handlers {
out, err := handler.Handle(extractor)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
var _ = ginkgo.Describe("suite-ingress-resource: ApisixRoute Testing", func() {
suites := func(scaffoldFunc func() *scaffold.Scaffold) {
s := scaffoldFunc()
ginkgo.FIt("create and then scale upstream pods to 2 ", func() {
ginkgo.It("create and then scale upstream pods to 2 ", func() {
backendSvc, backendSvcPort := s.DefaultHTTPBackend()
apisixRoute := fmt.Sprintf(`
apiVersion: apisix.apache.org/v2beta3
Expand Down

0 comments on commit 5b89467

Please sign in to comment.