Skip to content

Commit 53ba70a

Browse files
committed
fix review comments
1 parent 1ff08ff commit 53ba70a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cloud/linode/loadbalancers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ var (
6161
string(linodego.AlgorithmRingHash): true,
6262
string(linodego.AlgorithmLeastConn): true,
6363
}
64-
// validTCPStickiness is a map of valid HTTP stickiness options
64+
// validHTTPStickiness is a map of valid HTTP stickiness options
6565
validHTTPStickiness = map[string]bool{
6666
string(linodego.StickinessNone): true,
6767
string(linodego.StickinessHTTPCookie): true,

docs/configuration/annotations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ The keys and the values in [annotations must be strings](https://kubernetes.io/d
2121
| `throttle` | `0`-`20` (`0` to disable) | `0` | Client Connection Throttle, which limits the number of subsequent new connections per second from the same client IP |
2222
| `default-protocol` | `tcp`, `udp`, `http`, `https` | `tcp` | This annotation is used to specify the default protocol for Linode NodeBalancer |
2323
| `default-proxy-protocol` | `none`, `v1`, `v2` | `none` | Specifies whether to use a version of Proxy Protocol on the underlying NodeBalancer |
24-
| `default-algorithm` | `roundrobin`, `leastconn`, `source`, `ring_hash` | `roundrobin` | This annotation is used to specify the default alogrithm for Linode NodeBalancer |
25-
| `default-stickiness` | `none`, `session`, `table`, `http_cookie`, `source_ip` | `session` UDP, `table` HTTP/HTTPs | This annotation is used to specify the default stickiness for Linode NodeBalancer |
24+
| `default-algorithm` | `roundrobin`, `leastconn`, `source`, `ring_hash` | `roundrobin` | This annotation is used to specify the default algorithm for Linode NodeBalancer |
25+
| `default-stickiness` | `none`, `session`, `table`, `http_cookie`, `source_ip` | `session` (for UDP), `table` (for HTTP/HTTPs) | This annotation is used to specify the default stickiness for Linode NodeBalancer |
2626
| `port-*` | json object | | Specifies port specific NodeBalancer configuration. See [Port Configuration](#port-specific-configuration) |
2727
| `check-type` | `none`, `connection`, `http`, `http_body` | `none` for UDP, else `connection` | The type of health check to perform against back-ends. See [Health Checks](loadbalancer.md#health-checks) |
2828
| `check-path` | string | | The URL path to check on each back-end during health checks |

e2e/test/lb-with-udp-ports/chainsaw-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ spec:
5555
port_7070_timeout=$(echo $nbconfig | jq '.check_timeout == 3')
5656
port_7070_attempts=$(echo $nbconfig | jq '.check_attempts == 2')
5757
port_7070_protocol=$(echo $nbconfig | jq '.protocol == "udp"')
58-
#port_7070_up_nodes=$(echo $nbconfig | jq '(.nodes_status.up)|tonumber >= 2')
59-
# Placeholder for the actual check until we have the support
58+
# TODO: Implement the actual check for UDP node health when support is added
59+
# port_7070_up_nodes=$(echo $nbconfig | jq '(.nodes_status.up)|tonumber >= 2')
6060
port_7070_up_nodes="true"
6161
6262
if [[ $port_7070_check == "true" && $port_7070_interval == "true" && $port_7070_timeout == "true" && $port_7070_attempts == "true" && $port_7070_protocol == "true" && $port_7070_up_nodes == "true" ]]; then

0 commit comments

Comments
 (0)