Skip to content

Commit 93b2ff1

Browse files
committed
优化:展示DedicatedCLBListener时增加Pod列
1 parent 7d7f92c commit 93b2ff1

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

api/v1alpha1/dedicatedclblistener_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ const (
6666
// +kubebuilder:subresource:status
6767
// +kubebuilder:printcolumn:name="LbId",type="string",JSONPath=".spec.lbId",description="CLB ID"
6868
// +kubebuilder:printcolumn:name="LbPort",type="integer",JSONPath=".spec.lbPort",description="Port of CLB Listener"
69+
// +kubebuilder:printcolumn:name="Pod",type="string",JSONPath=".spec.targetPod.podName",description="Pod name of target pod"
6970
// +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.state",description="State of the dedicated clb listener"
7071

7172
// DedicatedCLBListener is the Schema for the dedicatedclblisteners API

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

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ spec:
3232
jsonPath: .spec.lbPort
3333
name: LbPort
3434
type: integer
35+
- description: Pod name of target pod
36+
jsonPath: .spec.targetPod.podName
37+
name: Pod
38+
type: string
3539
- description: State of the dedicated clb listener
3640
jsonPath: .status.state
3741
name: State

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

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ spec:
2323
jsonPath: .spec.lbPort
2424
name: LbPort
2525
type: integer
26+
- description: Pod name of target pod
27+
jsonPath: .spec.targetPod.podName
28+
name: Pod
29+
type: string
2630
- description: State of the dedicated clb listener
2731
jsonPath: .status.state
2832
name: State

0 commit comments

Comments
 (0)