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
|
storage: false
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
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:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
description: ClusterResourceBinding represents a binding of a kubernetes resource
|
description: ClusterResourceBinding represents a binding of a kubernetes resource
|
||||||
|
|
|
@ -215,7 +215,17 @@ spec:
|
||||||
storage: false
|
storage: false
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
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:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
description: ResourceBinding represents a binding of a kubernetes resource
|
description: ResourceBinding represents a binding of a kubernetes resource
|
||||||
|
|
|
@ -16,7 +16,14 @@ spec:
|
||||||
singular: work
|
singular: work
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
versions:
|
versions:
|
||||||
- name: v1alpha1
|
- additionalPrinterColumns:
|
||||||
|
- jsonPath: .status.conditions[?(@.type=="Applied")].status
|
||||||
|
name: Applied
|
||||||
|
type: string
|
||||||
|
- jsonPath: .metadata.creationTimestamp
|
||||||
|
name: Age
|
||||||
|
type: date
|
||||||
|
name: v1alpha1
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
description: Work defines a list of resources to be deployed on the member
|
description: Work defines a list of resources to be deployed on the member
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
// +genclient
|
// +genclient
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
// +kubebuilder:subresource:status
|
// +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.
|
// Work defines a list of resources to be deployed on the member cluster.
|
||||||
type Work struct {
|
type Work struct {
|
||||||
|
|
|
@ -11,6 +11,9 @@ import (
|
||||||
// +kubebuilder:subresource:status
|
// +kubebuilder:subresource:status
|
||||||
// +kubebuilder:resource:shortName=rb
|
// +kubebuilder:resource:shortName=rb
|
||||||
// +kubebuilder:storageversion
|
// +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.
|
// ResourceBinding represents a binding of a kubernetes resource with a propagation policy.
|
||||||
type ResourceBinding struct {
|
type ResourceBinding struct {
|
||||||
|
@ -162,6 +165,9 @@ type ResourceBindingList struct {
|
||||||
// +kubebuilder:resource:scope="Cluster",shortName=crb
|
// +kubebuilder:resource:scope="Cluster",shortName=crb
|
||||||
// +kubebuilder:subresource:status
|
// +kubebuilder:subresource:status
|
||||||
// +kubebuilder:storageversion
|
// +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.
|
// ClusterResourceBinding represents a binding of a kubernetes resource with a ClusterPropagationPolicy.
|
||||||
type ClusterResourceBinding struct {
|
type ClusterResourceBinding struct {
|
||||||
|
|
Loading…
Reference in New Issue