aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/crds
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/crds')
-rw-r--r--deploy/crds/k8s_v1alpha1_providernetwork_cr.yaml19
-rw-r--r--deploy/crds/k8s_v1alpha1_providernetwork_crd.yaml14
2 files changed, 30 insertions, 3 deletions
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: