Skip to content

Commit

Permalink
crd: Add virtual size to backing images
Browse files Browse the repository at this point in the history
Related issue: #7923

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 459cd1b)
  • Loading branch information
tserong authored and shuo-wu committed Apr 6, 2024
1 parent fad9412 commit e0aafa1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions chart/templates/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ spec:
type: string
uuid:
type: string
virtualSize:
format: int64
type: integer
type: object
nullable: true
type: object
Expand Down Expand Up @@ -412,6 +415,10 @@ spec:
jsonPath: .status.size
name: Size
type: string
- description: The virtual size of the image (may be larger than file size)
jsonPath: .status.virtualSize
name: VirtualSize
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down Expand Up @@ -479,6 +486,10 @@ spec:
type: integer
uuid:
type: string
virtualSize:
description: Virtual size of image, which may be larger than physical size. Will be zero until known (e.g. while a backing image is uploading)
format: int64
type: integer
type: object
type: object
served: true
Expand Down
11 changes: 11 additions & 0 deletions deploy/longhorn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ spec:
type: string
uuid:
type: string
virtualSize:
format: int64
type: integer
type: object
nullable: true
type: object
Expand Down Expand Up @@ -496,6 +499,10 @@ spec:
jsonPath: .status.size
name: Size
type: string
- description: The virtual size of the image (may be larger than file size)
jsonPath: .status.virtualSize
name: VirtualSize
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down Expand Up @@ -563,6 +570,10 @@ spec:
type: integer
uuid:
type: string
virtualSize:
description: Virtual size of image, which may be larger than physical size. Will be zero until known (e.g. while a backing image is uploading)
format: int64
type: integer
type: object
type: object
served: true
Expand Down

0 comments on commit e0aafa1

Please sign in to comment.