extend api model for rpi5

This commit is contained in:
Lukasz Zajaczkowski 2025-02-26 16:17:21 +01:00
parent 458ef60a33
commit f7d6ecc51f
3 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,7 @@ type Model string
const ( const (
RPI3 Model = "rpi3" RPI3 Model = "rpi3"
RPI4 Model = "rpi4" RPI4 Model = "rpi4"
RPI5 Model = "rpi5"
) )
// OSArtifactSpec defines the desired state of OSArtifact // OSArtifactSpec defines the desired state of OSArtifact
@ -38,7 +39,7 @@ type OSArtifactSpec struct {
ISO bool `json:"iso,omitempty"` ISO bool `json:"iso,omitempty"`
// +kubebuilder:validation:Type:=string // +kubebuilder:validation:Type:=string
// +kubebuilder:validation:Enum:=rpi3;rpi4 // +kubebuilder:validation:Enum:=rpi3;rpi4;rpi5
// +optional // +optional
Model *Model `json:"model,omitempty"` Model *Model `json:"model,omitempty"`

View File

@ -290,6 +290,7 @@ spec:
enum: enum:
- rpi3 - rpi3
- rpi4 - rpi4
- rpi5
type: string type: string
project: project:
type: string type: string

View File

@ -290,6 +290,7 @@ spec:
enum: enum:
- rpi3 - rpi3
- rpi4 - rpi4
- rpi5
type: string type: string
project: project:
type: string type: string