Skip to content

Commit

Permalink
feat(main): delete udp feature (labring#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuisongliu authored and j4ckzh0u committed Jan 20, 2022
1 parent 33f631b commit 297bb45
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 40 deletions.
4 changes: 0 additions & 4 deletions api/network/v1beta1/types.go

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

5 changes: 0 additions & 5 deletions api/network/v1beta1/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 @@ -156,15 +156,6 @@ spec:
https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes'
format: int32
type: integer
udpSocket:
description: UDPSocket specifies an action involving a UDP port.
UDP hooks not yet supported
properties:
enable:
type: boolean
required:
- enable
type: object
required:
- port
- targetPort
Expand Down
9 changes: 0 additions & 9 deletions config/crd/sealyun.com_clusterendpoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,6 @@ spec:
https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes'
format: int32
type: integer
udpSocket:
description: UDPSocket specifies an action involving a UDP port.
UDP hooks not yet supported
properties:
enable:
type: boolean
required:
- enable
type: object
required:
- port
- targetPort
Expand Down
13 changes: 0 additions & 13 deletions controllers/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,6 @@ func healthyCheck(host string, cep *v1beta1.ClusterEndpoint) ([]v1beta1.ServiceP
HTTPHeaders: port.HTTPGet.HTTPHeaders,
}
}
if port.UDPSocket != nil && port.UDPSocket.Enable {
pro.TCPSocket = &libv1.TCPSocketAction{
Port: intstr.FromInt(int(port.TargetPort)),
Host: host,
}
}
network := ""
if port.TCPSocket != nil && port.TCPSocket.Enable {
network = "tcp"
Expand All @@ -188,13 +182,6 @@ func healthyCheck(host string, cep *v1beta1.ClusterEndpoint) ([]v1beta1.ServiceP
Host: host,
}
}
if port.UDPSocket != nil && port.UDPSocket.Enable {
network = "udp"
pro.TCPSocket = &libv1.TCPSocketAction{
Port: intstr.FromInt(int(port.TargetPort)),
Host: host,
}
}
w := &work{p: pro, network: network}
for w.doProbe() {
}
Expand Down

0 comments on commit 297bb45

Please sign in to comment.