File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
internal/controller/status Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ import (
1919 "github.com/nginx/nginx-gateway-fabric/v2/internal/framework/kinds"
2020)
2121
22- // UnusableGatewayIPAddress 198.51.100.0 is a publicly reserved IP address specifically for documentation.
22+ // unusableGatewayIPAddress 198.51.100.0 is a publicly reserved IP address specifically for documentation.
2323// This is needed to give the conformance tests an example valid ip unusable address.
24- const UnusableGatewayIPAddress = "198.51.100.0"
24+ const unusableGatewayIPAddress = "198.51.100.0"
2525
2626// PrepareRouteRequests prepares status UpdateRequests for the given Routes.
2727func PrepareRouteRequests (
@@ -343,7 +343,7 @@ func prepareGatewayRequest(
343343 "Gateway addresses field are not supported, value must be specified" ))
344344 } else {
345345 ip := net .ParseIP (address .Value )
346- if ip == nil || reflect .DeepEqual (ip , net .ParseIP (UnusableGatewayIPAddress )) {
346+ if ip == nil || reflect .DeepEqual (ip , net .ParseIP (unusableGatewayIPAddress )) {
347347 gwConds = append (gwConds , conditions .NewGatewayUnusableAddress ("Invalid IP address" ))
348348 }
349349 }
Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ import (
3232 "sigs.k8s.io/yaml"
3333)
3434
35- // UnusableGatewayIPAddress 198.51.100.0 is a publicly reserved IP address specifically for documentation.
35+ // unusableGatewayIPAddress 198.51.100.0 is a publicly reserved IP address specifically for documentation.
3636// This is needed to give the conformance tests an example valid ip unusable address.
37- const UnusableGatewayIPAddress = "198.51.100.0"
37+ const unusableGatewayIPAddress = "198.51.100.0"
3838
3939func TestConformance (t * testing.T ) {
4040 g := NewWithT (t )
@@ -50,7 +50,7 @@ func TestConformance(t *testing.T) {
5050 opts := conformance .DefaultOptions (t )
5151
5252 ipaddressType := v1 .IPAddressType
53- opts .UnusableNetworkAddresses = []v1beta1.GatewaySpecAddress {{Type : & ipaddressType , Value : UnusableGatewayIPAddress }}
53+ opts .UnusableNetworkAddresses = []v1beta1.GatewaySpecAddress {{Type : & ipaddressType , Value : unusableGatewayIPAddress }}
5454 opts .UsableNetworkAddresses = []v1beta1.GatewaySpecAddress {{Type : & ipaddressType , Value : "192.0.2.1" }}
5555
5656 opts .Implementation = conf_v1.Implementation {
You can’t perform that action at this time.
0 commit comments