summaryrefslogtreecommitdiffstats
path: root/src/k8splugin/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2020-09-08Provide capability to specify release-name during instantiationKonrad Bańka1-7/+8
Allow release-name property to be provided during instantiation that, if provided, overrides release-name specified in profile. Additionally updated Makefile to allow easy compilation with different go version easily. Issue-ID: MULTICLOUD-1175 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: Id8db484369045cfb0bc99543a80317644fc838f9
2019-11-06Add race condition detectionKiran Kamineni1-3/+3
Add the -race flag to detect any race conditions in the k8splugin code It is enabled only for tests right now because of performance impact on builds. Issue-ID: MULTICLOUD-870 Change-Id: I53a90df39d2d8b51cbdb6c320f2247721ed98a07 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-09-05Remove ovn4nfvk8s network pluginKonrad Bańka1-1/+0
As ovn4nfv networks are now handled on k8s side by created CRD, this plugin is no longer necessary. Removed all references to ovn Issue-ID: MULTICLOUD-733 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: I7ad6c6d9b3b4fd8f249796f437e69c7df4e701cc
2019-09-03Merge "Remove double thread restriction on build"Ritu Sood1-1/+1
2019-08-30Remove gopath from buildsKiran Kamineni1-3/+0
Remove gopath from builds as go mod does not require them. Issue-ID: MULTICLOUD-666 Change-Id: I3fa4057fb4d40c7f509a52fb82beceddc8f3e090 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-08-30Remove double thread restriction on buildKiran Kamineni1-1/+1
The double thread restriction on the build was introduced to alleviate runtime memory exceptions. Now that we have a larger VM for builds, this is not required. Issue-ID: MULTICLOUD-666 Change-Id: I7568c094a3b4ef0b33dde456d4abfacd0606ffc8 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-07-11Reduce process count in testKiran Kamineni1-1/+1
CI seems to be failing with out of memory issues This reduces the multiprocess to 2 for the go test command. Issue-ID: MULTICLOUD-666 Change-Id: I3f70ecad51cc16f8972346882d5d98fc803427ef Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-01Remove build tagsKiran Kamineni1-12/+5
Remove build tags as this is causing issues where mock plugins need to be loaded into files that do unit testing as well. Full integration testing is being done in the CSIT. Issue-ID: MULTICLOUD-559 Change-Id: Icd147dac80d16a6fb8f33048c76d4083158cecd2 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-03-21Merge "Remove -a build flag"Victor Morales1-2/+2
2019-03-20Remove -a build flagRitu Sood1-2/+2
-a forces rebuilding of packages that are already up-to-date. This is slowing down builds to several minutes Change-Id: Iac082538b91e60b23dc1a2f3b1f1597e078d7a4a Signed-off-by: Ritu Sood <ritu.sood@intel.com> Issue-ID: MULTICLOUD-301
2019-03-19Bring in all the other helper codeKiran Kamineni1-2/+2
Bring in all the helper functions added for end to end integration. This allows the api level upload of helm charts, profiles and also instantiation of said helm charts. P3: Plugin index is based on lowercase kind name whereas the map contains the correct case for kind. Convert to lower case before loading the plugin. Changes after rebasing on the new folder structure. Rebasing over the new folder structure P8: Add unit tests for Resolve function Fix the integration tests for createvnf I had to add a huge blob of base64 encoded data based on the profile and sample helm chart to test the flow. P12: Update the integration test with the rb_profile_id parameter Issue-ID: MULTICLOUD-291 Change-Id: If04c41cb185074989ab6c96557958140c43e456d Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-01-30Add net tag to MakefileVictor Morales1-1/+1
The change that removes duplicate plugins make actions I0efecdcb70052b4c0d66102c56e0c715481cb34a didn't consider the flag for net module which it's needed during the runtime. Change-Id: I534c38d017fcc08294e8ca52cc936dea117914e3 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2019-01-25Remove duplicate plugins make actionVictor Morales1-3/+2
The action which compiles all the plugins is duplicated in the Makefile. This change remove that duplication to define a consistent build process. Change-Id: I0efecdcb70052b4c0d66102c56e0c715481cb34a Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-12-05Add Network and OVN4NFV PluginsRitu Sood1-1/+2
This patch includes support for Network Objects through a new plugin. It also add the first sub-module plugin for OVN4NFVK8s support. Change-Id: Ia23c42d50f75a5206e1b6a04052c34e940518428 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-303
2018-10-31Migrate from dep to go modKiran Kamineni1-7/+3
Migrate from dep to go mod which is native package management functionality in golang 1.11 Issue-ID: MULTICLOUD-392 Change-Id: I9a94cb38bd230738d7d0e586e6956b7a46472dd7 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-09-25Create code coverage reportVictor Morales1-1/+6
The cover action target allows the creation of code coverage report during the Jenkins Job execution, giving an idea of the impact of the change submitted. Change-Id: Ia2b8d57a0f9235ace021baaa6f74370b6656e58f Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-18Add UTs to pluginsVictor Morales1-4/+0
Deployment, service and namespace are plugins which offers CRUD operations to manage their resources. They haven't implemented Unit Tests which makes fragile to change/refactor the source code. This change adds their corresponding Unit Tests and defines a standard interface. Change-Id: I1e1eb40f1a18ba33c74069a117462c8df17767ac Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-14Separate testsVictor Morales1-7/+19
The current tests can be separated in two categories: unit test and integration tests. The criteria depends on the scope or dependencies required for the test. This change provides a mechanism to test only one category. Change-Id: Ib7bac49cb0b2d14544fb9704345436a7ba71aead Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-06Improve compilation processVictor Morales1-7/+4
The current architecture offers the possibility to add more plugins and extend the its functionality. This flexibility has to be supported during the compilation process. This change modify the Makefile to find plugins and compile them. It also adds a start.sh script which allows to run MultiCloud services without the need of packaging their binaries in a container. Change-Id: I9271c51daa4fd9156717e37f1818886c72e36c27 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-05Move mock plugin compilationVictor Morales1-12/+9
The instruction that compiles the Mock plugin is only required during the testing, therefore this instruction can be moved in different place in the Makefile Change-Id: Ib800b2b39992a1020e466aa3f22cada5ac84bcf6 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-08-31Update building processShashank Kumar Shankar1-4/+13
The building process differed from the build.sh script and Makefile. In other words, the docker images were created with different instructions than development process. This patch centralizes these instructions in a single source for building binaries. Change-Id: Ib214d335b0e696be6a1a09d3cb8126a75bdf2da4 Issue-ID: MULTICLOUD-301 Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com> Signed-off-by: Victor Morales <victor.morales@intel.com>
2018-08-24Seed code for k8s multicloud pluginShashank Kumar Shankar1-0/+43
This patch provides the initial seed code for the multicloud Kubernetes plugin and also provides the plugin feature to add new Kubernetes kinds. Change-Id: Ie5ee414656665070cde2834c4855ac2ebc179a9a Issue-ID: MULTICLOUD-301 Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com> Signed-off-by: Victor Morales <victor.morales@intel.com>