Add ovn4nfv-network addon 94/122194/1
authorTodd Malsbary <todd.malsbary@intel.com>
Fri, 18 Jun 2021 23:05:20 +0000 (16:05 -0700)
committerTodd Malsbary <todd.malsbary@intel.com>
Thu, 24 Jun 2021 23:38:40 +0000 (16:38 -0700)
This chart contains the ovn-networkobj NetworkAttachmentDefinition
required by EMCO.

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: Iaf10bacaf7ff263b165ca18a427958f7e75c3628

kud/deployment_infra/emco/Makefile
kud/deployment_infra/emco/examples/values.yaml.example
kud/deployment_infra/helm/ovn4nfv-network/.helmignore [new file with mode: 0644]
kud/deployment_infra/helm/ovn4nfv-network/Chart.yaml [new file with mode: 0644]
kud/deployment_infra/helm/ovn4nfv-network/templates/ovnnetwork.yaml [new file with mode: 0644]
kud/deployment_infra/helm/ovn4nfv-network/values.yaml [new file with mode: 0644]
kud/deployment_infra/profiles/ovn4nfv-network/manifest.yaml [new file with mode: 0644]
kud/deployment_infra/profiles/ovn4nfv-network/override_values.yaml [new file with mode: 0644]
kud/hosting_providers/containerized/addons/values.yaml.tmpl
kud/hosting_providers/containerized/installer.sh

index e06b5f6..e6e0588 100644 (file)
@@ -25,6 +25,7 @@ ADDONS := \
        multus-cni \
        node-feature-discovery \
        ovn4nfv \
+       ovn4nfv-network \
        sriov-network \
        sriov-network-operator \
        qat-device-plugin
index 4f5e45e..8c4b6c3 100644 (file)
@@ -33,4 +33,5 @@ AddonResourcesDeploymentIntentGroup: addon-resources-deployment-intent-group
 AddonResourcesDeploymentIntent: addon-resources-deployment-intent
 AddonResourcesPlacementIntent: addon-resources-placement-intent
 AddonResources:
+- ovn4nfv-network
 - sriov-network
diff --git a/kud/deployment_infra/helm/ovn4nfv-network/.helmignore b/kud/deployment_infra/helm/ovn4nfv-network/.helmignore
new file mode 100644 (file)
index 0000000..0e8a0eb
--- /dev/null
@@ -0,0 +1,23 @@
+# Patterns to ignore when building packages.
+# This supports shell glob matching, relative path matching, and
+# negation (prefixed with !). Only one pattern per line.
+.DS_Store
+# Common VCS dirs
+.git/
+.gitignore
+.bzr/
+.bzrignore
+.hg/
+.hgignore
+.svn/
+# Common backup files
+*.swp
+*.bak
+*.tmp
+*.orig
+*~
+# Various IDEs
+.project
+.idea/
+*.tmproj
+.vscode/
diff --git a/kud/deployment_infra/helm/ovn4nfv-network/Chart.yaml b/kud/deployment_infra/helm/ovn4nfv-network/Chart.yaml
new file mode 100644 (file)
index 0000000..1b57a74
--- /dev/null
@@ -0,0 +1,24 @@
+# Copyright 2021 Intel Corporation, Inc
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+apiVersion: v2
+appVersion: v2.2.0
+description: |
+  OVN4NFV K8s Plugin - Network definitions
+home: https://github.com/opnfv/ovn4nfv-k8s-plugin
+name: ovn4nfv-network
+sources:
+  - https://github.com/opnfv/ovn4nfv-k8s-plugin
+type: application
+version: 0.1.0
diff --git a/kud/deployment_infra/helm/ovn4nfv-network/templates/ovnnetwork.yaml b/kud/deployment_infra/helm/ovn4nfv-network/templates/ovnnetwork.yaml
new file mode 100644 (file)
index 0000000..cdb44f4
--- /dev/null
@@ -0,0 +1,10 @@
+apiVersion: k8s.cni.cncf.io/v1
+kind: NetworkAttachmentDefinition
+metadata:
+  name: ovn-networkobj
+spec:
+  config: '{
+     "cniVersion": "0.3.1",
+     "name": "ovn4nfv-k8s-plugin",
+     "type": "ovn4nfvk8s-cni"
+  }'
diff --git a/kud/deployment_infra/helm/ovn4nfv-network/values.yaml b/kud/deployment_infra/helm/ovn4nfv-network/values.yaml
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/kud/deployment_infra/profiles/ovn4nfv-network/manifest.yaml b/kud/deployment_infra/profiles/ovn4nfv-network/manifest.yaml
new file mode 100644 (file)
index 0000000..4d381d0
--- /dev/null
@@ -0,0 +1,4 @@
+---
+version: v1
+type:
+  values: "override_values.yaml"
diff --git a/kud/deployment_infra/profiles/ovn4nfv-network/override_values.yaml b/kud/deployment_infra/profiles/ovn4nfv-network/override_values.yaml
new file mode 100644 (file)
index 0000000..e69de29
index f4f0b76..328c37d 100644 (file)
@@ -33,4 +33,5 @@ AddonResourcesDeploymentIntentGroup: addon-resources-deployment-intent-group
 AddonResourcesDeploymentIntent: addon-resources-deployment-intent
 AddonResourcesPlacementIntent: addon-resources-placement-intent
 AddonResources:
+- ovn4nfv-network
 - sriov-network
index 844c154..8119a55 100755 (executable)
@@ -221,7 +221,7 @@ function install_host_artifacts {
     local -r host_addons_dir="${host_dir}/addons"
     local -r host_artifacts_dir="${host_dir}/${cluster_name}/artifacts"
 
-    for addon in cdi cdi-operator cpu-manager kubevirt kubevirt-operator multus-cni node-feature-discovery ovn4nfv qat-device-plugin sriov-network sriov-network-operator; do
+    for addon in cdi cdi-operator cpu-manager kubevirt kubevirt-operator multus-cni node-feature-discovery ovn4nfv ovn4nfv-network qat-device-plugin sriov-network sriov-network-operator; do
         mkdir -p ${host_addons_dir}/${addon}/{helm,profile}
         cp -r ${kud_infra_folder}/helm/${addon} ${host_addons_dir}/${addon}/helm
         cp -r ${kud_infra_folder}/profiles/${addon}/* ${host_addons_dir}/${addon}/profile