Skip to content

Commit

Permalink
Merge pull request #103 from Nordix/fix-mael
Browse files Browse the repository at this point in the history
🏃 Update v1a3 CRDs to add image checksum type and disk format
  • Loading branch information
metal3-io-bot committed Jun 23, 2020
2 parents 85b4805 + 35a4126 commit 14e6efd
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 10 deletions.
9 changes: 9 additions & 0 deletions api/v1alpha3/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,13 @@ type Image struct {

// Checksum is a md5sum value or a URL to retrieve one.
Checksum string `json:"checksum"`

// ChecksumType is the checksum algorithm for the image.
// e.g md5, sha256, sha512
// +kubebuilder:validation:Enum=md5;sha256;sha512
ChecksumType *string `json:"checksumType,omitempty"`

//DiskFormat contains the image disk format
// +kubebuilder:validation:Enum=raw;qcow2;vdi;vmdk
DiskFormat *string `json:"format,omitempty"`
}
6 changes: 4 additions & 2 deletions api/v1alpha3/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion api/v1alpha3/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/v1alpha4/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ type Image struct {
ChecksumType *string `json:"checksumType,omitempty"`

//DiskFormat contains the image disk format
// +kubebuilder:validation:Enum=raw;qcow2;qed;vdi;vmdk;vpc;vhd
// +kubebuilder:validation:Enum=raw;qcow2;vdi;vmdk
DiskFormat *string `json:"format,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,22 @@ spec:
checksum:
description: Checksum is a md5sum value or a URL to retrieve one.
type: string
checksumType:
description: ChecksumType is the checksum algorithm for the image.
e.g md5, sha256, sha512
enum:
- md5
- sha256
- sha512
type: string
format:
description: DiskFormat contains the image disk format
enum:
- raw
- qcow2
- vdi
- vmdk
type: string
url:
description: URL is a location of an image to deploy.
type: string
Expand Down Expand Up @@ -509,11 +525,8 @@ spec:
enum:
- raw
- qcow2
- qed
- vdi
- vmdk
- vpc
- vhd
type: string
url:
description: URL is a location of an image to deploy.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,22 @@ spec:
description: Checksum is a md5sum value or a URL to retrieve
one.
type: string
checksumType:
description: ChecksumType is the checksum algorithm for
the image. e.g md5, sha256, sha512
enum:
- md5
- sha256
- sha512
type: string
format:
description: DiskFormat contains the image disk format
enum:
- raw
- qcow2
- vdi
- vmdk
type: string
url:
description: URL is a location of an image to deploy.
type: string
Expand Down Expand Up @@ -358,11 +374,8 @@ spec:
enum:
- raw
- qcow2
- qed
- vdi
- vmdk
- vpc
- vhd
type: string
url:
description: URL is a location of an image to deploy.
Expand Down

0 comments on commit 14e6efd

Please sign in to comment.