api: Move Status in CRD printcolumn to the end
Status content could be very long compare to other fields. Moving it to the end helps improve the visibility of other fields. Signed-off-by: Sunny <darkowlzz@protonmail.com>
This commit is contained in:
parent
6497680d0d
commit
0659a69016
|
@ -158,9 +158,9 @@ func (in *Bucket) GetStatusConditions() *[]metav1.Condition {
|
||||||
// +kubebuilder:object:root=true
|
// +kubebuilder:object:root=true
|
||||||
// +kubebuilder:subresource:status
|
// +kubebuilder:subresource:status
|
||||||
// +kubebuilder:printcolumn:name="Endpoint",type=string,JSONPath=`.spec.endpoint`
|
// +kubebuilder:printcolumn:name="Endpoint",type=string,JSONPath=`.spec.endpoint`
|
||||||
|
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
|
||||||
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
||||||
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
|
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
|
||||||
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
|
|
||||||
|
|
||||||
// Bucket is the Schema for the buckets API
|
// Bucket is the Schema for the buckets API
|
||||||
type Bucket struct {
|
type Bucket struct {
|
||||||
|
|
|
@ -230,9 +230,9 @@ func (in *GitRepository) GetStatusConditions() *[]metav1.Condition {
|
||||||
// +kubebuilder:resource:shortName=gitrepo
|
// +kubebuilder:resource:shortName=gitrepo
|
||||||
// +kubebuilder:subresource:status
|
// +kubebuilder:subresource:status
|
||||||
// +kubebuilder:printcolumn:name="URL",type=string,JSONPath=`.spec.url`
|
// +kubebuilder:printcolumn:name="URL",type=string,JSONPath=`.spec.url`
|
||||||
|
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
|
||||||
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
||||||
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
|
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
|
||||||
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
|
|
||||||
|
|
||||||
// GitRepository is the Schema for the gitrepositories API
|
// GitRepository is the Schema for the gitrepositories API
|
||||||
type GitRepository struct {
|
type GitRepository struct {
|
||||||
|
|
|
@ -209,9 +209,9 @@ func (in *HelmChart) GetStatusConditions() *[]metav1.Condition {
|
||||||
// +kubebuilder:printcolumn:name="Version",type=string,JSONPath=`.spec.version`
|
// +kubebuilder:printcolumn:name="Version",type=string,JSONPath=`.spec.version`
|
||||||
// +kubebuilder:printcolumn:name="Source Kind",type=string,JSONPath=`.spec.sourceRef.kind`
|
// +kubebuilder:printcolumn:name="Source Kind",type=string,JSONPath=`.spec.sourceRef.kind`
|
||||||
// +kubebuilder:printcolumn:name="Source Name",type=string,JSONPath=`.spec.sourceRef.name`
|
// +kubebuilder:printcolumn:name="Source Name",type=string,JSONPath=`.spec.sourceRef.name`
|
||||||
|
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
|
||||||
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
||||||
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
|
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
|
||||||
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
|
|
||||||
|
|
||||||
// HelmChart is the Schema for the helmcharts API
|
// HelmChart is the Schema for the helmcharts API
|
||||||
type HelmChart struct {
|
type HelmChart struct {
|
||||||
|
|
|
@ -145,9 +145,9 @@ func (in *HelmRepository) GetStatusConditions() *[]metav1.Condition {
|
||||||
// +kubebuilder:resource:shortName=helmrepo
|
// +kubebuilder:resource:shortName=helmrepo
|
||||||
// +kubebuilder:subresource:status
|
// +kubebuilder:subresource:status
|
||||||
// +kubebuilder:printcolumn:name="URL",type=string,JSONPath=`.spec.url`
|
// +kubebuilder:printcolumn:name="URL",type=string,JSONPath=`.spec.url`
|
||||||
|
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
|
||||||
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
||||||
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
|
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
|
||||||
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
|
|
||||||
|
|
||||||
// HelmRepository is the Schema for the helmrepositories API
|
// HelmRepository is the Schema for the helmrepositories API
|
||||||
type HelmRepository struct {
|
type HelmRepository struct {
|
||||||
|
|
|
@ -254,15 +254,15 @@ spec:
|
||||||
- jsonPath: .spec.endpoint
|
- jsonPath: .spec.endpoint
|
||||||
name: Endpoint
|
name: Endpoint
|
||||||
type: string
|
type: string
|
||||||
|
- jsonPath: .metadata.creationTimestamp
|
||||||
|
name: Age
|
||||||
|
type: date
|
||||||
- jsonPath: .status.conditions[?(@.type=="Ready")].status
|
- jsonPath: .status.conditions[?(@.type=="Ready")].status
|
||||||
name: Ready
|
name: Ready
|
||||||
type: string
|
type: string
|
||||||
- jsonPath: .status.conditions[?(@.type=="Ready")].message
|
- jsonPath: .status.conditions[?(@.type=="Ready")].message
|
||||||
name: Status
|
name: Status
|
||||||
type: string
|
type: string
|
||||||
- jsonPath: .metadata.creationTimestamp
|
|
||||||
name: Age
|
|
||||||
type: date
|
|
||||||
name: v1beta2
|
name: v1beta2
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
|
|
@ -353,15 +353,15 @@ spec:
|
||||||
- jsonPath: .spec.url
|
- jsonPath: .spec.url
|
||||||
name: URL
|
name: URL
|
||||||
type: string
|
type: string
|
||||||
|
- jsonPath: .metadata.creationTimestamp
|
||||||
|
name: Age
|
||||||
|
type: date
|
||||||
- jsonPath: .status.conditions[?(@.type=="Ready")].status
|
- jsonPath: .status.conditions[?(@.type=="Ready")].status
|
||||||
name: Ready
|
name: Ready
|
||||||
type: string
|
type: string
|
||||||
- jsonPath: .status.conditions[?(@.type=="Ready")].message
|
- jsonPath: .status.conditions[?(@.type=="Ready")].message
|
||||||
name: Status
|
name: Status
|
||||||
type: string
|
type: string
|
||||||
- jsonPath: .metadata.creationTimestamp
|
|
||||||
name: Age
|
|
||||||
type: date
|
|
||||||
name: v1beta2
|
name: v1beta2
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
|
|
@ -287,15 +287,15 @@ spec:
|
||||||
- jsonPath: .spec.sourceRef.name
|
- jsonPath: .spec.sourceRef.name
|
||||||
name: Source Name
|
name: Source Name
|
||||||
type: string
|
type: string
|
||||||
|
- jsonPath: .metadata.creationTimestamp
|
||||||
|
name: Age
|
||||||
|
type: date
|
||||||
- jsonPath: .status.conditions[?(@.type=="Ready")].status
|
- jsonPath: .status.conditions[?(@.type=="Ready")].status
|
||||||
name: Ready
|
name: Ready
|
||||||
type: string
|
type: string
|
||||||
- jsonPath: .status.conditions[?(@.type=="Ready")].message
|
- jsonPath: .status.conditions[?(@.type=="Ready")].message
|
||||||
name: Status
|
name: Status
|
||||||
type: string
|
type: string
|
||||||
- jsonPath: .metadata.creationTimestamp
|
|
||||||
name: Age
|
|
||||||
type: date
|
|
||||||
name: v1beta2
|
name: v1beta2
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
|
|
@ -241,15 +241,15 @@ spec:
|
||||||
- jsonPath: .spec.url
|
- jsonPath: .spec.url
|
||||||
name: URL
|
name: URL
|
||||||
type: string
|
type: string
|
||||||
|
- jsonPath: .metadata.creationTimestamp
|
||||||
|
name: Age
|
||||||
|
type: date
|
||||||
- jsonPath: .status.conditions[?(@.type=="Ready")].status
|
- jsonPath: .status.conditions[?(@.type=="Ready")].status
|
||||||
name: Ready
|
name: Ready
|
||||||
type: string
|
type: string
|
||||||
- jsonPath: .status.conditions[?(@.type=="Ready")].message
|
- jsonPath: .status.conditions[?(@.type=="Ready")].message
|
||||||
name: Status
|
name: Status
|
||||||
type: string
|
type: string
|
||||||
- jsonPath: .metadata.creationTimestamp
|
|
||||||
name: Age
|
|
||||||
type: date
|
|
||||||
name: v1beta2
|
name: v1beta2
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
|
Loading…
Reference in New Issue