validate cidr

only accept validated cidr.
And fix the error handle when network-isotate is diabled.
And remove the useless crd.

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
This commit is contained in:
Duan Jiong
2020-06-10 18:08:56 +08:00
parent d4b7d88b4b
commit 825e026930
3 changed files with 7 additions and 766 deletions

View File

@@ -101,6 +101,7 @@ spec:
description: CIDR is a string representing the IP Block
Valid examples are "192.168.1.1/24"
type: string
pattern: ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))$
except:
description: Except is a slice of CIDRs that should
not be included within an IP Block Valid examples