Skip to content

Commit

Permalink
Update column name
Browse files Browse the repository at this point in the history
  • Loading branch information
yaocw2020 authored and guangbochen committed Jun 22, 2021
1 parent 774a8b6 commit 8a27b20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ spec:
name: TYPE
type: string
- jsonPath: .status.internalAddress
name: INTERNALADDR
name: INTERNAL-ADDRESS
type: string
- jsonPath: .status.externalAddress
name: EXTERNALADDR
name: EXTERNAL-ADDRESS
type: string
name: v1alpha1
schema:
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/loadbalancer.harvesterhci.io/v1alpha1/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
// +kubebuilder:resource:shortName=lb;lbs,scope=Namespaced
// +kubebuilder:printcolumn:name="DESCRIPTION",type=string,JSONPath=`.spec.description`
// +kubebuilder:printcolumn:name="TYPE",type=string,JSONPath=`.spec.type`
// +kubebuilder:printcolumn:name="INTERNALADDR",type=string,JSONPath=`.status.internalAddress`
// +kubebuilder:printcolumn:name="EXTERNALADDR",type=string,JSONPath=`.status.externalAddress`
// +kubebuilder:printcolumn:name="INTERNAL-ADDRESS",type=string,JSONPath=`.status.internalAddress`
// +kubebuilder:printcolumn:name="EXTERNAL-ADDRESS",type=string,JSONPath=`.status.externalAddress`

type LoadBalancer struct {
metav1.TypeMeta `json:",inline"`
Expand Down

0 comments on commit 8a27b20

Please sign in to comment.