From ff2964a37d7a3c7322a00cb0951d6e9c66ce862b Mon Sep 17 00:00:00 2001 From: dmicheneau <47741512+dmicheneau@users.noreply.github.com> Date: Mon, 21 Oct 2024 11:37:02 +0200 Subject: [PATCH] chore: rename row Images Age to Last-sync --- api/v1alpha1/image_types.go | 6 +++--- config/crd/bases/kimup.cloudavenue.io_images.yaml | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/v1alpha1/image_types.go b/api/v1alpha1/image_types.go index d9a3766..49891ba 100644 --- a/api/v1alpha1/image_types.go +++ b/api/v1alpha1/image_types.go @@ -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"` } ) @@ -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"` @@ -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 diff --git a/config/crd/bases/kimup.cloudavenue.io_images.yaml b/config/crd/bases/kimup.cloudavenue.io_images.yaml index 33c1a6b..12355ea 100644 --- a/config/crd/bases/kimup.cloudavenue.io_images.yaml +++ b/config/crd/bases/kimup.cloudavenue.io_images.yaml @@ -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 @@ -219,8 +219,6 @@ spec: status: description: ImageStatus defines the observed state of Image properties: - age: - type: string result: type: string tag: @@ -228,10 +226,12 @@ spec: 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