From 52123c4bdcfad323f8fb57742400be993167ae2d Mon Sep 17 00:00:00 2001 From: Ritu Sood Date: Sun, 29 Sep 2019 06:07:26 -0700 Subject: Add Provider Network CRD controller CRD controller watches for Provider Network CR's and sends messages to all the nodes that needs to be configured for provider network, if subsribe message was already received from the agent running on the node. Change-Id: Idc3e2703a309113b325a2fb7c8eb244a02babeb3 Signed-off-by: Ritu Sood --- deploy/crds/k8s_v1alpha1_providernetwork_cr.yaml | 19 +++++++++++++++++++ deploy/crds/k8s_v1alpha1_providernetwork_crd.yaml | 14 +++++++++++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 deploy/crds/k8s_v1alpha1_providernetwork_cr.yaml (limited to 'deploy') diff --git a/deploy/crds/k8s_v1alpha1_providernetwork_cr.yaml b/deploy/crds/k8s_v1alpha1_providernetwork_cr.yaml new file mode 100644 index 0000000..ef03725 --- /dev/null +++ b/deploy/crds/k8s_v1alpha1_providernetwork_cr.yaml @@ -0,0 +1,19 @@ +apiVersion: k8s.plugin.opnfv.org/v1alpha1 +kind: ProviderNetwork +metadata: + name: pnetwork +spec: + cniType: ovn4nfv + ipv4Subnets: + - subnet: 172.16.33.0/24 + name: subnet1 + gateway: 172.16.33.1/24 + excludeIps: 172.16.33.2 172.16.33.5..172.16.33.10 + providerNetType: VLAN + vlan: + vlanId: "100" + providerInterfaceName: eth1 + logicalInterfaceName: eth1.100 + vlanNodeSelector: specific + nodeLabelList: + - kubernetes.io/hostname=testnode1 diff --git a/deploy/crds/k8s_v1alpha1_providernetwork_crd.yaml b/deploy/crds/k8s_v1alpha1_providernetwork_crd.yaml index eabf3f2..cea5b72 100644 --- a/deploy/crds/k8s_v1alpha1_providernetwork_crd.yaml +++ b/deploy/crds/k8s_v1alpha1_providernetwork_crd.yaml @@ -101,15 +101,23 @@ spec: properties: logicalInterfaceName: type: string - node: - type: string + nodeLabelList: + description: '"all"/"any"(in which case a node will be randomly + selected)/"specific"(see below)' + items: + type: string + type: array providerInterfaceName: + description: if VlanNodeSelector is value "specific" then this array + provides a list of nodes labels type: string vlanId: type: string + vlanNodeSelector: + type: string required: - vlanId - - node + - vlanNodeSelector - providerInterfaceName type: object required: -- cgit 1.2.3-korg