Skip to content

Commit

Permalink
Merge pull request #119876 from marosset/revert-118895
Browse files Browse the repository at this point in the history
Revert "Merge pull request #118895 from RyanAoh/kep-1860"

Kubernetes-commit: e6218f3d3bede036b2d67a4349dd761aac06ae97
  • Loading branch information
k8s-publishing-bot committed Aug 10, 2023
2 parents b76dbf0 + b582191 commit e32cee6
Show file tree
Hide file tree
Showing 8 changed files with 576 additions and 660 deletions.
1,198 changes: 576 additions & 622 deletions core/v1/generated.pb.go

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions core/v1/generated.proto

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

21 changes: 0 additions & 21 deletions core/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4692,15 +4692,6 @@ type LoadBalancerIngress struct {
// +optional
Hostname string `json:"hostname,omitempty" protobuf:"bytes,2,opt,name=hostname"`

// IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified.
// Setting this to "VIP" indicates that traffic is delivered to the node with
// the destination set to the load-balancer's IP and port.
// Setting this to "Proxy" indicates that traffic is delivered to the node or pod with
// the destination set to the node's IP and node port or the pod's IP and port.
// Service implementations may use this information to adjust traffic routing.
// +optional
IPMode *LoadBalancerIPMode `json:"ipMode,omitempty" protobuf:"bytes,3,opt,name=ipMode"`

// Ports is a list of records of service ports
// If used, every port defined in the service should have an entry in it
// +listType=atomic
Expand Down Expand Up @@ -7063,15 +7054,3 @@ type PortStatus struct {
// +kubebuilder:validation:MaxLength=316
Error *string `json:"error,omitempty" protobuf:"bytes,3,opt,name=error"`
}

// LoadBalancerIPMode represents the mode of the LoadBalancer ingress IP
type LoadBalancerIPMode string

const (
// LoadBalancerIPModeVIP indicates that traffic is delivered to the node with
// the destination set to the load-balancer's IP and port.
LoadBalancerIPModeVIP LoadBalancerIPMode = "VIP"
// LoadBalancerIPModeProxy indicates that traffic is delivered to the node or pod with
// the destination set to the node's IP and port or the pod's IP and port.
LoadBalancerIPModeProxy LoadBalancerIPMode = "Proxy"
)
1 change: 0 additions & 1 deletion core/v1/types_swagger_doc_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,6 @@ var map_LoadBalancerIngress = map[string]string{
"": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.",
"ip": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)",
"hostname": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)",
"ipMode": "IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.",
"ports": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it",
}

Expand Down
5 changes: 0 additions & 5 deletions core/v1/zz_generated.deepcopy.go

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

1 change: 0 additions & 1 deletion testdata/HEAD/core.v1.Service.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
{
"ip": "ipValue",
"hostname": "hostnameValue",
"ipMode": "ipModeValue",
"ports": [
{
"port": 1,
Expand Down
Binary file modified testdata/HEAD/core.v1.Service.pb
Binary file not shown.
1 change: 0 additions & 1 deletion testdata/HEAD/core.v1.Service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ status:
ingress:
- hostname: hostnameValue
ip: ipValue
ipMode: ipModeValue
ports:
- error: errorValue
port: 1
Expand Down

0 comments on commit e32cee6

Please sign in to comment.