Skip to content

Commit 3b42029

Browse files
committed
make lbPolicy mutatable
Signed-off-by: roc <[email protected]>
1 parent 4e297fc commit 3b42029

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

api/v1alpha1/clbportpool_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ type CLBPortPoolSpec struct {
5353
// 若希望减小 DDoS 攻击的影响,建议使用 Uniform 策略,避免业务使用的 IP 过于集中;若希望提高
5454
// CLB 的利用率,建议使用 InOrder 策略。
5555
// +kubebuilder:validation:Enum=Uniform;InOrder;Random
56-
// +kubebuilder:validation:XValidation:rule="self == oldSelf", message="Value is immutable"
5756
// +optional
5857
LbPolicy *string `json:"lbPolicy,omitempty"`
5958
// 已有负载均衡器ID列表

charts/tke-extend-network-controller/templates/networking.cloud.tencent.com_clbportpools.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,6 @@ spec:
220220
- InOrder
221221
- Random
222222
type: string
223-
x-kubernetes-validations:
224-
- message: Value is immutable
225-
rule: self == oldSelf
226223
listenerQuota:
227224
description: |-
228225
监听器数量配额。仅用在单独调整了指定 CLB 实例监听器数量配额的场景(TOTAL_LISTENER_QUOTA),

config/crd/bases/networking.cloud.tencent.com_clbportpools.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,6 @@ spec:
220220
- InOrder
221221
- Random
222222
type: string
223-
x-kubernetes-validations:
224-
- message: Value is immutable
225-
rule: self == oldSelf
226223
listenerQuota:
227224
description: |-
228225
监听器数量配额。仅用在单独调整了指定 CLB 实例监听器数量配额的场景(TOTAL_LISTENER_QUOTA),

internal/portpool/allocator.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ func (pa *PortAllocator) EnsurePool(pool *networkingv1alpha1.CLBPortPool) (added
8484
p.LbPolicy = lbPolicy
8585
}
8686
}
87-
8887
return
8988
}
9089

0 commit comments

Comments
 (0)