X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ffoundation%2Fscripts%2Fcni%2Fdanm%2Fintegration%2Fcrds%2Flightweight%2FDanmNet.yaml;fp=src%2Ffoundation%2Fscripts%2Fcni%2Fdanm%2Fintegration%2Fcrds%2Flightweight%2FDanmNet.yaml;h=abe00c42d04bfa604056e6b9d9c3b481f0313c6e;hb=9bb5493922a305ff0491058a1ddffef00a3fe67c;hp=0000000000000000000000000000000000000000;hpb=a4546182269b01038a1e672cb16b081930bd11bb;p=iec.git diff --git a/src/foundation/scripts/cni/danm/integration/crds/lightweight/DanmNet.yaml b/src/foundation/scripts/cni/danm/integration/crds/lightweight/DanmNet.yaml new file mode 100644 index 0000000..abe00c4 --- /dev/null +++ b/src/foundation/scripts/cni/danm/integration/crds/lightweight/DanmNet.yaml @@ -0,0 +1,66 @@ +# yamllint disable rule:hyphens rule:commas rule:indentation rule:line-length +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + name: danmnets.danm.k8s.io +spec: + scope: Namespaced + group: danm.k8s.io + version: v1 + names: + kind: DanmNet + plural: danmnets + singular: danmnet + shortNames: + - dn + - dnet + validation: + openAPIV3Schema: + properties: + spec: + properties: + NetworkID: + type: string + NetworkType: + type: string + Options: + properties: + cidr: + type: string + pattern: '^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))$' + allocation_pool: + properties: + start: + type: string + pattern: '(^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$)?' + end: + type: string + pattern: '(^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$)?' + container_prefix: + type: string + host_device: + type: string + device_pool: + type: string + vxlan: + type: integer + format: int32 + minimum: 1 + maximum: 16777214 + vlan: + type: integer + format: int32 + minimum: 1 + maximum: 4094 + rt_tables: + type: integer + format: int32 + minimum: 0 + maximum: 255 + net6: + type: string + pattern: '^s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))(%.+)?s*(\/([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8]))$' + routes: + type: object + routes6: + type: object