Skip to content

Commit 58063af

Browse files
committed
1 parent fa8b8de commit 58063af

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

api/lmes/v1alpha1/lmevaljob_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ type OCISpec struct {
474474
Repository string `json:"repository"`
475475
// Optional tag for the artifact (defaults to job name if not specified)
476476
// +optional
477-
// +kubebuilder:validation:Pattern=`^[a-zA-Z0-9._-]*$`
477+
// +kubebuilder:validation:Pattern=`^[a-zA-Z0-9_][a-zA-Z0-9._-]{0,127}$`
478+
// +kubebuilder:validation:MaxLength=128
478479
Tag string `json:"tag,omitempty"`
479480
// Subject for the OCI artifact
480481
// +optional

config/crd/bases/trustyai.opendatahub.io_lmevaljobs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@ spec:
352352
tag:
353353
description: Optional tag for the artifact (defaults to job
354354
name if not specified)
355-
pattern: ^[a-zA-Z0-9._-]*$
355+
maxLength: 128
356+
pattern: ^[a-zA-Z0-9_][a-zA-Z0-9._-]{0,127}$
356357
type: string
357358
username:
358359
description: Username for registry authentication

0 commit comments

Comments
 (0)