Fix "last scan" print column for ImageRepository

Fixes #118

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
This commit is contained in:
Aurel Canciu 2021-03-12 12:47:34 +02:00
parent 83d66bc21d
commit 428594f3e5
No known key found for this signature in database
GPG Key ID: AB25339971E6F81E
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ func (in ImageRepository) GetTimeout() time.Duration {
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Last scan",type=string,JSONPath=`.status.lastScanTime`
// +kubebuilder:printcolumn:name="Last scan",type=string,JSONPath=`.status.lastScanResult.scanTime`
// +kubebuilder:printcolumn:name="Tags",type=string,JSONPath=`.status.lastScanResult.tagCount`
// ImageRepository is the Schema for the imagerepositories API

View File

@ -17,7 +17,7 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.lastScanTime
- jsonPath: .status.lastScanResult.scanTime
name: Last scan
type: string
- jsonPath: .status.lastScanResult.tagCount