Add more printcolumn for rb, crb and work
Signed-off-by: lonelyCZ <531187475@qq.com>
This commit is contained in:
parent
006bccd0bd
commit
ff40417721
|
@ -215,7 +215,17 @@ spec:
|
|||
storage: false
|
||||
subresources:
|
||||
status: {}
|
||||
- name: v1alpha2
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .status.conditions[?(@.type=="Scheduled")].status
|
||||
name: Scheduled
|
||||
type: string
|
||||
- jsonPath: .status.conditions[?(@.type=="FullyApplied")].status
|
||||
name: FullyApplied
|
||||
type: string
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1alpha2
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: ClusterResourceBinding represents a binding of a kubernetes resource
|
||||
|
|
|
@ -215,7 +215,17 @@ spec:
|
|||
storage: false
|
||||
subresources:
|
||||
status: {}
|
||||
- name: v1alpha2
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .status.conditions[?(@.type=="Scheduled")].status
|
||||
name: Scheduled
|
||||
type: string
|
||||
- jsonPath: .status.conditions[?(@.type=="FullyApplied")].status
|
||||
name: FullyApplied
|
||||
type: string
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1alpha2
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: ResourceBinding represents a binding of a kubernetes resource
|
||||
|
|
|
@ -16,7 +16,14 @@ spec:
|
|||
singular: work
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .status.conditions[?(@.type=="Applied")].status
|
||||
name: Applied
|
||||
type: string
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: Work defines a list of resources to be deployed on the member
|
||||
|
|
|
@ -8,6 +8,8 @@ import (
|
|||
// +genclient
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="Applied")].status`,name="Applied",type=string
|
||||
// +kubebuilder:printcolumn:JSONPath=`.metadata.creationTimestamp`,name="Age",type=date
|
||||
|
||||
// Work defines a list of resources to be deployed on the member cluster.
|
||||
type Work struct {
|
||||
|
|
|
@ -11,6 +11,9 @@ import (
|
|||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:resource:shortName=rb
|
||||
// +kubebuilder:storageversion
|
||||
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="Scheduled")].status`,name="Scheduled",type=string
|
||||
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="FullyApplied")].status`,name="FullyApplied",type=string
|
||||
// +kubebuilder:printcolumn:JSONPath=`.metadata.creationTimestamp`,name="Age",type=date
|
||||
|
||||
// ResourceBinding represents a binding of a kubernetes resource with a propagation policy.
|
||||
type ResourceBinding struct {
|
||||
|
@ -162,6 +165,9 @@ type ResourceBindingList struct {
|
|||
// +kubebuilder:resource:scope="Cluster",shortName=crb
|
||||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:storageversion
|
||||
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="Scheduled")].status`,name="Scheduled",type=string
|
||||
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="FullyApplied")].status`,name="FullyApplied",type=string
|
||||
// +kubebuilder:printcolumn:JSONPath=`.metadata.creationTimestamp`,name="Age",type=date
|
||||
|
||||
// ClusterResourceBinding represents a binding of a kubernetes resource with a ClusterPropagationPolicy.
|
||||
type ClusterResourceBinding struct {
|
||||
|
|
Loading…
Reference in New Issue