From 2606cb897ef29ceaf1d7c9bf97237d0be18d5028 Mon Sep 17 00:00:00 2001 From: Navendu Pottekkat Date: Mon, 8 Jan 2024 18:42:28 +0530 Subject: [PATCH] change function name Signed-off-by: Navendu Pottekkat --- pkg/i2gw/providers/apisix/converter.go | 2 +- pkg/i2gw/providers/apisix/http_to_https.go | 2 +- pkg/i2gw/providers/apisix/http_to_https_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/i2gw/providers/apisix/converter.go b/pkg/i2gw/providers/apisix/converter.go index e6b4edfa..dee79fb1 100644 --- a/pkg/i2gw/providers/apisix/converter.go +++ b/pkg/i2gw/providers/apisix/converter.go @@ -33,7 +33,7 @@ type converter struct { func newConverter() *converter { return &converter{ featureParsers: []i2gw.FeatureParser{ - httpToHttpsFeature, + httpToHTTPSFeature, }, implementationSpecificOptions: i2gw.ProviderImplementationSpecificOptions{ // The list of the implementationSpecific ingress fields options comes here. diff --git a/pkg/i2gw/providers/apisix/http_to_https.go b/pkg/i2gw/providers/apisix/http_to_https.go index dbd06ae4..953ae1ab 100644 --- a/pkg/i2gw/providers/apisix/http_to_https.go +++ b/pkg/i2gw/providers/apisix/http_to_https.go @@ -25,7 +25,7 @@ import ( gatewayv1 "sigs.k8s.io/gateway-api/apis/v1" ) -func httpToHttpsFeature(ingressResources i2gw.InputResources, gatewayResources *i2gw.GatewayResources) field.ErrorList { +func httpToHTTPSFeature(ingressResources i2gw.InputResources, gatewayResources *i2gw.GatewayResources) field.ErrorList { var errs field.ErrorList httpToHTTPSAnnotation := apisixAnnotation("http-to-https") ruleGroups := common.GetRuleGroups(ingressResources.Ingresses) diff --git a/pkg/i2gw/providers/apisix/http_to_https_test.go b/pkg/i2gw/providers/apisix/http_to_https_test.go index 72c877c4..35fe6f10 100644 --- a/pkg/i2gw/providers/apisix/http_to_https_test.go +++ b/pkg/i2gw/providers/apisix/http_to_https_test.go @@ -266,7 +266,7 @@ func Test_httpToHttpsFeature(t *testing.T) { }, } - errs := httpToHttpsFeature(ingressResources, gatewayResources) + errs := httpToHTTPSFeature(ingressResources, gatewayResources) if len(errs) != len(tc.expectedError) { t.Errorf("expected %d errors, got %d", len(tc.expectedError), len(errs))