From 46c901836d043790095d15598341297b15865092 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Mon, 5 Feb 2024 10:54:54 +0200 Subject: [PATCH] Add test for CRD with regex validation Signed-off-by: Stefan Prodan --- internal/controller/testdata/crds/crd.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/controller/testdata/crds/crd.yaml b/internal/controller/testdata/crds/crd.yaml index 0c218b64..8f4fca8b 100644 --- a/internal/controller/testdata/crds/crd.yaml +++ b/internal/controller/testdata/crds/crd.yaml @@ -29,6 +29,13 @@ spec: spec: description: TestSpec defines the desired state of a test run properties: + name: + description: name specifies the subject name of schema. If not configured, + the Schema CR name is used as the subject name. + maxLength: 255 + minLength: 1 + pattern: ^[^\\]*$ + type: string type: description: Type of test type: string