Skip to content

Commit

Permalink
change function name
Browse files Browse the repository at this point in the history
Signed-off-by: Navendu Pottekkat <[email protected]>
  • Loading branch information
pottekkat committed Jan 8, 2024
1 parent e0dbcf8 commit 2606cb8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/i2gw/providers/apisix/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pkg/i2gw/providers/apisix/http_to_https.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pkg/i2gw/providers/apisix/http_to_https_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2606cb8

Please sign in to comment.