Skip to content

Commit

Permalink
rename address proto to proto
Browse files Browse the repository at this point in the history
Signed-off-by: Guy Daich <guy.daich@sap.com>
  • Loading branch information
guydc committed May 1, 2024
1 parent c9909ea commit 2167922
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions api/v1alpha1/backend_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const (
KindBackend = "Backend"
)

type AddressProtocolType string
type ProtocolType string

const (
// AddressProtocolTypeTCP defines the TCP address protocol.
AddressProtocolTypeTCP AddressProtocolType = "TCP"
// AddressProtocolTypeUDP defines the UDP address protocol.
AddressProtocolTypeUDP AddressProtocolType = "UDP"
// ProtocolTypeTCP defines the TCP address protocol.
ProtocolTypeTCP ProtocolType = "TCP"
// ProtocolTypeUDP defines the UDP address protocol.
ProtocolTypeUDP ProtocolType = "UDP"
)

type ApplicationProtocolType string
Expand Down Expand Up @@ -81,7 +81,7 @@ type SocketAddress struct {
Port int32 `json:"port"`

// +kubebuilder:validation:Enum=TCP;UDP
Protocol *AddressProtocolType `json:"protocol,omitempty"`
Protocol *ProtocolType `json:"protocol,omitempty"`
}

// UnixDomainSocketAddress describes TCP/UDP unix domain socket address, corresponding to Envoy's Pipe
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: backends.gateway.envoyproxy.io
spec:
group: gateway.envoyproxy.io
Expand Down
32 changes: 16 additions & 16 deletions site/content/en/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,21 +172,6 @@ _Appears in:_
| `TCP` | ActiveHealthCheckerTypeTCP defines the TCP type of health checking.<br /> |


#### AddressProtocolType

_Underlying type:_ _string_



_Appears in:_
- [SocketAddress](#socketaddress)

| Value | Description |
| ----- | ----------- |
| `TCP` | AddressProtocolTypeTCP defines the TCP address protocol.<br /> |
| `UDP` | AddressProtocolTypeUDP defines the UDP address protocol.<br /> |


#### ApplicationProtocolType

_Underlying type:_ _string_
Expand Down Expand Up @@ -2330,6 +2315,21 @@ _Appears in:_
| `body` | _[ExtProcBodyProcessingMode](#extprocbodyprocessingmode)_ | false | Defines body processing mode |


#### ProtocolType

_Underlying type:_ _string_



_Appears in:_
- [SocketAddress](#socketaddress)

| Value | Description |
| ----- | ----------- |
| `TCP` | ProtocolTypeTCP defines the TCP address protocol.<br /> |
| `UDP` | ProtocolTypeUDP defines the UDP address protocol.<br /> |


#### ProviderType

_Underlying type:_ _string_
Expand Down Expand Up @@ -3076,7 +3076,7 @@ _Appears in:_
| --- | --- | --- | --- |
| `address` | _string_ | true | Address refers to the FQDN or IP address of the backend service. |
| `port` | _integer_ | true | Address refers to the FQDN or IP address of the backend service. |
| `protocol` | _[AddressProtocolType](#addressprotocoltype)_ | true | |
| `protocol` | _[ProtocolType](#protocoltype)_ | true | |



Expand Down

0 comments on commit 2167922

Please sign in to comment.