Skip to content

Commit

Permalink
Add small feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bjee19 committed Jan 30, 2025
1 parent e28a213 commit b538622
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions apis/v1alpha1/nginxproxy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const (
IPv6 IPFamilyType = "ipv6"
)

// RewriteClientIPAddress is a struct that specifies address type and value.
// RewriteClientIPAddress specifies the address type and value for a RewriteClientIP address.
type RewriteClientIPAddress struct {
// Type specifies the type of address.
Type RewriteClientIPAddressType `json:"type"`
Expand All @@ -217,7 +217,7 @@ const (
RewriteClientIPHostnameAddressType RewriteClientIPAddressType = "Hostname"
)

// NginxPlusAllowAddress is a struct that specifies address type and value.
// NginxPlusAllowAddress specifies the address type and value for an NginxPlus allow address.
type NginxPlusAllowAddress struct {
// Type specifies the type of address.
Type NginxPlusAllowAddressType `json:"type"`
Expand Down
8 changes: 4 additions & 4 deletions config/crd/bases/gateway.nginx.org_nginxproxies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ spec:
description: AllowedAddresses specifies IPAddresses or CIDR blocks
to the allow list for accessing the NGINX Plus API.
items:
description: NginxPlusAllowAddress is a struct that specifies
address type and value.
description: NginxPlusAllowAddress specifies the address type
and value for an NginxPlus allow address.
properties:
type:
description: Type specifies the type of address.
Expand Down Expand Up @@ -147,8 +147,8 @@ spec:
Sets NGINX directive set_real_ip_from: https://nginx.org/en/docs/http/ngx_http_realip_module.html#set_real_ip_from
This field is required if mode is set.
items:
description: RewriteClientIPAddress is a struct that specifies
address type and value.
description: RewriteClientIPAddress specifies the address type
and value for a RewriteClientIP address.
properties:
type:
description: Type specifies the type of address.
Expand Down
8 changes: 4 additions & 4 deletions deploy/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,8 @@ spec:
description: AllowedAddresses specifies IPAddresses or CIDR blocks
to the allow list for accessing the NGINX Plus API.
items:
description: NginxPlusAllowAddress is a struct that specifies
address type and value.
description: NginxPlusAllowAddress specifies the address type
and value for an NginxPlus allow address.
properties:
type:
description: Type specifies the type of address.
Expand Down Expand Up @@ -732,8 +732,8 @@ spec:
Sets NGINX directive set_real_ip_from: https://nginx.org/en/docs/http/ngx_http_realip_module.html#set_real_ip_from
This field is required if mode is set.
items:
description: RewriteClientIPAddress is a struct that specifies
address type and value.
description: RewriteClientIPAddress specifies the address type
and value for a RewriteClientIP address.
properties:
type:
description: Type specifies the type of address.
Expand Down
2 changes: 1 addition & 1 deletion internal/mode/static/state/dataplane/configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4538,7 +4538,7 @@ func TestBuildNginxPlus(t *testing.T) {
expNginxPlus: defaultNginxPlus,
},
{
msg: "NginxProxy does not specify Nginx Plus settings",
msg: "NginxPlus default values are used when NginxProxy doesn't specify NginxPlus settings",
g: &graph.Graph{
NginxProxy: &graph.NginxProxy{
Valid: true,
Expand Down
4 changes: 2 additions & 2 deletions site/content/reference/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ crit, alert, and emerg messages to be logged. <a href="https://nginx.org/en/docs
<a href="#gateway.nginx.org/v1alpha1.NginxPlus">NginxPlus</a>)
</p>
<p>
<p>NginxPlusAllowAddress is a struct that specifies address type and value.</p>
<p>NginxPlusAllowAddress specifies the address type and value for an NginxPlus allow address.</p>
</p>
<table class="table table-bordered table-striped">
<thead>
Expand Down Expand Up @@ -1683,7 +1683,7 @@ This field is required if mode is set.</p>
<a href="#gateway.nginx.org/v1alpha1.RewriteClientIP">RewriteClientIP</a>)
</p>
<p>
<p>RewriteClientIPAddress is a struct that specifies address type and value.</p>
<p>RewriteClientIPAddress specifies the address type and value for a RewriteClientIP address.</p>
</p>
<table class="table table-bordered table-striped">
<thead>
Expand Down

0 comments on commit b538622

Please sign in to comment.