Skip to content

Commit 49f615b

Browse files
committed
Add minKubeVersion validation to templates
Require minKubeVersion to be SemVer formated (Major.Minor.Patch). Signed-off-by: Vu Dinh <[email protected]>
1 parent a9736f0 commit 49f615b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deploy/chart/templates/0000_50_olm_02-clusterserviceversion.crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ spec:
6363
minKubeVersion:
6464
type: string
6565
description: Minimum kubernetes version requirement on the server to deploy operator
66+
pattern: ^\bv?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$
6667

6768
keywords:
6869
type: array

0 commit comments

Comments
 (0)