Skip to content

Commit

Permalink
chore: rename row Images Age to Last-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
dmicheneau committed Oct 21, 2024
1 parent acf4c9c commit ff2964a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions api/v1alpha1/image_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ type (
// Important: Run "make" to regenerate code after modifying this file
Tag string `json:"tag"`
Result string `json:"result"`
Age string `json:"age"`
Time string `json:"time"`
}
)

Expand All @@ -114,7 +114,7 @@ type (
// +kubebuilder:printcolumn:name="Image",type=string,JSONPath=`.spec.image`
// +kubebuilder:printcolumn:name="Tag",type=string,JSONPath=`.status.tag`
// +kubebuilder:printcolumn:name="Last-Result",type=string,JSONPath=`.status.result`
// +kubebuilder:printcolumn:name="Last-Sync",type=date,JSONPath=`.status.age`
// +kubebuilder:printcolumn:name="Last-Sync",type=date,JSONPath=`.status.time`
type Image struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down Expand Up @@ -148,7 +148,7 @@ func (i *Image) SetStatusResult(result string) {

// SetStatusTime sets the status time of the image
func (i *Image) SetStatusTime(time string) {
i.Status.Age = time
i.Status.Time = time
}

// GetImageWithTag returns the image name with the tag
Expand Down
8 changes: 4 additions & 4 deletions config/crd/bases/kimup.cloudavenue.io_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- jsonPath: .status.result
name: Last-Result
type: string
- jsonPath: .status.age
- jsonPath: .status.time
name: Last-Sync
type: date
name: v1alpha1
Expand Down Expand Up @@ -219,19 +219,19 @@ spec:
status:
description: ImageStatus defines the observed state of Image
properties:
age:
type: string
result:
type: string
tag:
description: |-
INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
Important: Run "make" to regenerate code after modifying this file
type: string
time:
type: string
required:
- age
- result
- tag
- time
type: object
type: object
served: true
Expand Down

0 comments on commit ff2964a

Please sign in to comment.