X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ffoundation%2Fscripts%2Fcni%2Fdanm%2Fintegration%2Fcrds%2Fproduction%2FClusterNetwork.yaml;fp=src%2Ffoundation%2Fscripts%2Fcni%2Fdanm%2Fintegration%2Fcrds%2Fproduction%2FClusterNetwork.yaml;h=b92536e0350685e632de50052769113b2901f15c;hb=92fa5a0e85848c61ac4fffc7bda774a01687c2ba;hp=0000000000000000000000000000000000000000;hpb=bcd84b3f9eea3c59d857cf2889fc943ebbe26443;p=iec.git diff --git a/src/foundation/scripts/cni/danm/integration/crds/production/ClusterNetwork.yaml b/src/foundation/scripts/cni/danm/integration/crds/production/ClusterNetwork.yaml new file mode 100644 index 0000000..b92536e --- /dev/null +++ b/src/foundation/scripts/cni/danm/integration/crds/production/ClusterNetwork.yaml @@ -0,0 +1,70 @@ +# yamllint disable rule:hyphens rule:commas rule:indentation rule:line-length +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + name: clusternetworks.danm.k8s.io +spec: + scope: Cluster + group: danm.k8s.io + version: v1 + names: + kind: ClusterNetwork + plural: clusternetworks + singular: clusternetwork + shortNames: + - cn + - cnet + validation: + openAPIV3Schema: + properties: + spec: + properties: + NetworkID: + type: string + NetworkType: + type: string + AllowedTenants: + type: array + items: + 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