Skip to content

Commit

Permalink
fix comments in loadbalancer api (#2145)
Browse files Browse the repository at this point in the history
Signed-off-by: zhaonan <zhaonan06@corp.netease.com>
  • Loading branch information
tmsnan authored Nov 1, 2023
1 parent 93a12e7 commit 77bcb3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/loadbalancer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package v1alpha1
// +kubebuilder:validation:XValidation:rule="self.type == 'ConsistentHash' ? has(self.consistentHash) : !has(self.consistentHash)",message="If LoadBalancer type is consistentHash, consistentHash field needs to be set."
type LoadBalancer struct {
// Type decides the type of Load Balancer policy.
// Valid RateLimitType values are
// Valid LoadBalancerType values are
// "ConsistentHash",
// "LeastRequest",
// "Random",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ spec:
type: object
type:
description: Type decides the type of Load Balancer policy. Valid
RateLimitType values are "ConsistentHash", "LeastRequest", "Random",
"RoundRobin",
LoadBalancerType values are "ConsistentHash", "LeastRequest",
"Random", "RoundRobin",
enum:
- ConsistentHash
- LeastRequest
Expand Down
2 changes: 1 addition & 1 deletion site/content/en/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ _Appears in:_

| Field | Description |
| --- | --- |
| `type` _[LoadBalancerType](#loadbalancertype)_ | Type decides the type of Load Balancer policy. Valid RateLimitType values are "ConsistentHash", "LeastRequest", "Random", "RoundRobin", |
| `type` _[LoadBalancerType](#loadbalancertype)_ | Type decides the type of Load Balancer policy. Valid LoadBalancerType values are "ConsistentHash", "LeastRequest", "Random", "RoundRobin", |
| `consistentHash` _[ConsistentHash](#consistenthash)_ | ConsistentHash defines the configuration when the load balancer type is set to ConsistentHash |


Expand Down

0 comments on commit 77bcb3c

Please sign in to comment.