@@ -5,14 +5,15 @@ import (
55 "crypto/sha256"
66 "encoding/hex"
77 "fmt"
8- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
98 "net/url"
109 "os"
1110 "path"
1211 "sort"
1312 "strconv"
1413 "strings"
1514
15+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
16+
1617 "github.com/nginxinc/kubernetes-ingress/internal/configs/version2"
1718 "github.com/nginxinc/kubernetes-ingress/internal/k8s/secrets"
1819 nl "github.com/nginxinc/kubernetes-ingress/internal/logger"
@@ -400,7 +401,7 @@ func (vsc *virtualServerConfigurator) GenerateVirtualServerConfig(
400401 apResources * appProtectResourcesForVS ,
401402 dosResources map [string ]* appProtectDosResource ,
402403) (version2.VirtualServerConfig , Warnings ) {
403- //l := nl.LoggerFromContext(vsc.cfgParams.Context)
404+ // l := nl.LoggerFromContext(vsc.cfgParams.Context)
404405 vsc .clearWarnings ()
405406
406407 useCustomListeners := false
@@ -608,9 +609,9 @@ func (vsc *virtualServerConfigurator) GenerateVirtualServerConfig(
608609
609610 // store route policies for the referenced VirtualServerRoute in case they don't define their own
610611 if len (r .Policies ) > 0 {
611- //nl.Infof(l, "Route Policies: %v", r.Policies)
612+ // nl.Infof(l, "Route Policies: %v", r.Policies)
612613 for _ , name := range vsrKeys {
613- //nl.Infof(l, "Adding policy to VSR $v: %v", name, r.Policies)
614+ // nl.Infof(l, "Adding policy to VSR $v: %v", name, r.Policies)
614615 vsrPoliciesFromVs [name ] = r .Policies
615616 }
616617 }
@@ -728,7 +729,7 @@ func (vsc *virtualServerConfigurator) GenerateVirtualServerConfig(
728729 }
729730 errorPageLocations = append (errorPageLocations , generateErrorPageLocations (errorPages .index , errorPages .pages )... )
730731 vsrNamespaceName := fmt .Sprintf ("%v/%v" , vsr .Namespace , vsr .Name )
731- //glog.Infof("vsrNamespaceName: %v", vsrNamespaceName)
732+ // glog.Infof("vsrNamespaceName: %v", vsrNamespaceName)
732733 // use the VirtualServer error pages if the route does not define any
733734 if r .ErrorPages == nil {
734735 if vsErrorPages , ok := vsrErrorPagesFromVs [vsrNamespaceName ]; ok {
0 commit comments