From 29422965e5cf0b9a62143c66205f3f5bf059f7e8 Mon Sep 17 00:00:00 2001 From: zhangzujian Date: Mon, 6 Sep 2021 09:40:31 +0800 Subject: [PATCH] update provider network CRD --- dist/images/install-pre-1.16.sh | 14 ++++++++++++++ dist/images/install.sh | 14 ++++++++++++++ yamls/crd-pre-1.16.yaml | 14 ++++++++++++++ yamls/crd.yaml | 14 ++++++++++++++ 4 files changed, 56 insertions(+) diff --git a/dist/images/install-pre-1.16.sh b/dist/images/install-pre-1.16.sh index a14f4478277..a966b619535 100644 --- a/dist/images/install-pre-1.16.sh +++ b/dist/images/install-pre-1.16.sh @@ -598,11 +598,23 @@ spec: validation: openAPIV3Schema: properties: + metadata: + type: object + properties: + name: + type: string + maxLength: 12 + not: + enum: + - int + - external spec: type: object properties: defaultInterface: type: string + maxLength: 15 + pattern: '^[^/\s]+$' customInterfaces: type: array items: @@ -610,6 +622,8 @@ spec: properties: interface: type: string + maxLength: 15 + pattern: '^[^/\s]+$' nodes: type: array items: diff --git a/dist/images/install.sh b/dist/images/install.sh index 031d6ad685d..5184df17469 100755 --- a/dist/images/install.sh +++ b/dist/images/install.sh @@ -629,11 +629,23 @@ spec: openAPIV3Schema: type: object properties: + metadata: + type: object + properties: + name: + type: string + maxLength: 12 + not: + enum: + - int + - external spec: type: object properties: defaultInterface: type: string + maxLength: 15 + pattern: '^[^/\s]+$' customInterfaces: type: array items: @@ -641,6 +653,8 @@ spec: properties: interface: type: string + maxLength: 15 + pattern: '^[^/\s]+$' nodes: type: array items: diff --git a/yamls/crd-pre-1.16.yaml b/yamls/crd-pre-1.16.yaml index d897aa1e1f8..d87b72fc0a1 100644 --- a/yamls/crd-pre-1.16.yaml +++ b/yamls/crd-pre-1.16.yaml @@ -267,11 +267,23 @@ spec: validation: openAPIV3Schema: properties: + metadata: + type: object + properties: + name: + type: string + maxLength: 12 + not: + enum: + - int + - external spec: type: object properties: defaultInterface: type: string + maxLength: 15 + pattern: '^[^/\s]+$' customInterfaces: type: array items: @@ -279,6 +291,8 @@ spec: properties: interface: type: string + maxLength: 15 + pattern: '^[^/\s]+$' nodes: type: array items: diff --git a/yamls/crd.yaml b/yamls/crd.yaml index 9452e8f7958..9234006e216 100644 --- a/yamls/crd.yaml +++ b/yamls/crd.yaml @@ -287,11 +287,23 @@ spec: openAPIV3Schema: type: object properties: + metadata: + type: object + properties: + name: + type: string + maxLength: 12 + not: + enum: + - int + - external spec: type: object properties: defaultInterface: type: string + maxLength: 15 + pattern: '^[^/\s]+$' customInterfaces: type: array items: @@ -299,6 +311,8 @@ spec: properties: interface: type: string + maxLength: 15 + pattern: '^[^/\s]+$' nodes: type: array items: