Skip to content

Commit 0e1cf95

Browse files
committed
add default pending state
Signed-off-by: roc <[email protected]>
1 parent bee5e0a commit 0e1cf95

8 files changed

+8
-0
lines changed

api/v1alpha1/clbbinding_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const (
3737
// CLBBindingStatus defines the observed state of CLBPodBinding.
3838
type CLBBindingStatus struct {
3939
// 绑定状态
40+
// +kubebuilder:default=Pending
4041
State CLBBindingState `json:"state"`
4142
// 状态信息
4243
Message string `json:"message,omitempty"`

api/v1alpha1/clbportpool_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ type InternetAccessible struct {
147147
// CLBPortPoolStatus defines the observed state of CLBPortPool.
148148
type CLBPortPoolStatus struct {
149149
// 状态: Pending/Active/Scaling
150+
// +kubebuilder:default=Pending
150151
State CLBPortPoolState `json:"state"`
151152
// 状态信息
152153
Message *string `json:"message,omitempty"`

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ spec:
135135
type: object
136136
type: array
137137
state:
138+
default: Pending
138139
description: 绑定状态
139140
type: string
140141
required:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ spec:
135135
type: object
136136
type: array
137137
state:
138+
default: Pending
138139
description: 绑定状态
139140
type: string
140141
required:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ spec:
286286
description: 监听器数量的 Quota
287287
type: integer
288288
state:
289+
default: Pending
289290
description: '状态: Pending/Active/Scaling'
290291
type: string
291292
required:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ spec:
135135
type: object
136136
type: array
137137
state:
138+
default: Pending
138139
description: 绑定状态
139140
type: string
140141
required:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ spec:
135135
type: object
136136
type: array
137137
state:
138+
default: Pending
138139
description: 绑定状态
139140
type: string
140141
required:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ spec:
286286
description: 监听器数量的 Quota
287287
type: integer
288288
state:
289+
default: Pending
289290
description: '状态: Pending/Active/Scaling'
290291
type: string
291292
required:

0 commit comments

Comments
 (0)