Fix "last scan" print column for ImageRepository
Fixes #118 Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
This commit is contained in:
parent
83d66bc21d
commit
428594f3e5
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue