Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
feat: add more print columns for ServiceExport (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Yang <[email protected]>

Signed-off-by: Lin Yang <[email protected]>
  • Loading branch information
reaver-flomesh committed Dec 17, 2022
1 parent feea71c commit d4a4f6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apis/serviceexport/v1alpha1/serviceexport_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ const (
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Namespaced
// +kubebuilder:printcolumn:name="Valid",type="string",priority=0,JSONPath=".status.conditions[?(@.type=='Valid')].status"
// +kubebuilder:printcolumn:name="Conflict",type="string",priority=0,JSONPath=".status.conditions[?(@.type=='Conflict')].status"
// +kubebuilder:printcolumn:name="Age",type="date",priority=0,JSONPath=".metadata.creationTimestamp"

// ServiceExport is the Schema for the ServiceExports API
Expand Down
6 changes: 6 additions & 0 deletions charts/erie-canal/apis/flomesh.io_mcs-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.conditions[?(@.type=='Valid')].status
name: Valid
type: string
- jsonPath: .status.conditions[?(@.type=='Conflict')].status
name: Conflict
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down

0 comments on commit d4a4f6c

Please sign in to comment.