Skip to content

Commit 5468ce6

Browse files
committed
Lowercase unexported constant
1 parent 82aac77 commit 5468ce6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

internal/controller/status/prepare_requests.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
2727
func 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
}

tests/conformance/conformance_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

3939
func 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{

0 commit comments

Comments
 (0)