fix: enable user password pattern checking via CRD validation.

This commit is contained in:
live77
2021-11-27 12:56:37 +08:00
parent 87efbfdfa3
commit 7d68cbd18e
2 changed files with 16 additions and 0 deletions

View File

@@ -58,6 +58,9 @@ spec:
type: string
password:
description: password will be encrypted by mutating admission webhook
maxLength: 64
minLength: 6
pattern: ^(.*[a-z].*[A-Z].*[0-9].*)$|^(.*[a-z].*[0-9].*[A-Z].*)$|^(.*[A-Z].*[a-z].*[0-9].*)$|^(.*[A-Z].*[0-9].*[a-z].*)$|^(.*[0-9].*[a-z].*[A-Z].*)$|^(.*[0-9].*[A-Z].*[a-z].*)$|^(\$2[ayb]\$.{56})$
type: string
required:
- email