diff --git a/.obs/chartfile/crds/templates/crds.yaml b/.obs/chartfile/crds/templates/crds.yaml index 9a2295b1..dd033e9e 100644 --- a/.obs/chartfile/crds/templates/crds.yaml +++ b/.obs/chartfile/crds/templates/crds.yaml @@ -2674,8 +2674,9 @@ spec: pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true targetPlatform: - description: Platform specifies the target platform to build the seedimage - for. + description: 'Platform specifies the target platform for the built + image. Example: linux/amd64' + pattern: ^$|^\S+\/\S+$ type: string type: default: iso diff --git a/api/v1beta1/seedimage_type.go b/api/v1beta1/seedimage_type.go index 7145b718..19c121e3 100644 --- a/api/v1beta1/seedimage_type.go +++ b/api/v1beta1/seedimage_type.go @@ -54,7 +54,10 @@ type SeedImageSpec struct { // +kubebuilder:validation:Enum=iso;raw // +kubebuilder:default:=iso Type SeedImageType `json:"type"` - // Platform specifies the target platform to build the seedimage for. + // Platform specifies the target platform for the built image. Example: linux/amd64 + // +kubebuilder:example=linux/amd64 + // +kubebuilder:validation:Pattern=`^$|^\S+\/\S+$` + // +kubebuilder:validation:Type=string // +optional TargetPlatform Platform `json:"targetPlatform"` // CloudConfig contains cloud-config data to be put in the generated iso. diff --git a/config/crd/bases/elemental.cattle.io_seedimages.yaml b/config/crd/bases/elemental.cattle.io_seedimages.yaml index e5556ad6..4b92bae0 100644 --- a/config/crd/bases/elemental.cattle.io_seedimages.yaml +++ b/config/crd/bases/elemental.cattle.io_seedimages.yaml @@ -124,8 +124,9 @@ spec: pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true targetPlatform: - description: Platform specifies the target platform to build the seedimage - for. + description: 'Platform specifies the target platform for the built + image. Example: linux/amd64' + pattern: ^$|^\S+\/\S+$ type: string type: default: iso