aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-03-21Merge "Remove -a build flag"Victor Morales1-2/+2
2019-03-21Merge "Bring in all the other helper code"Victor Morales10-41/+380
2019-03-21Merge "Cleanup kubespray config values"Bin Yang1-12/+1
2019-03-21Merge "Update setup.sh script"Bin Yang1-7/+7
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-20Workaround for Kernel Package IssueRitu Sood1-1/+1
Due to Ubuntu Kernel package issue KRD is not installing. https://bugs.launchpad.net/ubuntu/+source/linux-base/+bug/1820755 This is a workaround to not install those kernel packages Change-Id: Ib298ad695c2e7b88bef46340afc9407868820e1d Signed-off-by: Ritu Sood <ritu.sood@intel.com> Issue-ID: MULTICLOUD-301
2019-03-20Merge "Switch to xenial Docker image"Bin Yang1-1/+1
2019-03-20Merge "Add cFW scripts folder"Bin Yang10-0/+337
2019-03-19Bring in all the other helper codeKiran Kamineni10-41/+380
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-03-14Upgrade mongo driver to 1.0Kiran Kamineni4-53/+58
Mongo driver 1.0 was released recently Upgrading from 0.2.0 which we were on right now. Issue-ID: MULTICLOUD-530 Change-Id: I6d968e99b129d4307414ec31410505200b7bd47d Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-03-13Merge "Add support for helm templates"Victor Morales4-13/+665
2019-03-12Push latest tagKiran Kamineni1-0/+1
Push latest tag during the nightly docker build along with the snapshot version that we already push Issue-ID: MULTICLOUD-526 Change-Id: Ifb5e27c8d86577e54d5dad9ce1d8320b422fec62 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-03-12Add support for helm templatesKiran Kamineni4-13/+665
Add support for evaluating helm templates The interface provides a way to get a map which contains a mapping from kubernetes kind to the corresponding yaml file that defines a resource of that kind. This map is then provided to the instantiation code at instantiation time to create in the kubernetes cluster. P5: Use filepath.join instead of strings.join P9: rebase with new folder structure P10: moved the helm code into its own package. P12: Add unit tests update the go.mod to use latest docker version Issue-ID: MULTICLOUD-291 Change-Id: Ie75f5c616cc0cdc3e0ace49ff2c2f6c356a4c0d1 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-03-12Merge "Add support for parsing profile yaml files"Victor Morales20-4/+486
2019-03-11Add support for parsing profile yaml filesKiran Kamineni20-4/+486
Add code to parse profile configuration yaml The parsing function is global and returns a client which can then be used to get or apply specific parts of the configuration on top of an extracted helm chart. P14: Add unit test that covers both ProcessProfileYaml and CopyConfigurationOverrides P15: Adding mock_charts and mock_profiles We expect to reuse these files for other unit tests Issue-ID: ONAPARC-348 Change-Id: I4504d0b158fdfef476b8c2a461d33306926545d7 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-03-11Detect chart nameKiran Kamineni4-20/+128
ChartName should not be mandatory field If not provided it will be detected by inspection of the tar.gz archive. Issue-ID: MULTICLOUD-525 Change-Id: Idaf9672f2cbbb882d78b1987467472ce73c651da Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-03-08Merge "Add test helm chart for testing"Victor Morales16-9/+576
2019-03-08Add test helm chart for testingKiran Kamineni16-9/+576
Add a test helm chart for testing the end to end flow. This chart brings up a service and a deployment. The deployment brings up two containers, vault and consul. Vault and Consul are brought up in dev mode. The helm chart also has a subchart, common, which contains templates that are used within the main chart. Added an override deployment.yaml which creates only one container instead of two Fixed plugin.sh and tar file creation steps Issue-ID: MULTICLOUD-291 Change-Id: I7eb10c9f43f8a4e09938139b5e2edee5d59feb3b Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com> Signed-off-by: Victor Morales <victor.morales@intel.com>
2019-03-07Switch to xenial Docker imageVictor Morales1-1/+1
The Ubuntu Xenial Docker image has lower footprint than Trusty, besides more security patches. This change modifies the Dockerfile that is used for building the Docker image. Change-Id: I89228ef555668aad1e621973fd33481ce49499d3 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2019-03-07Update setup.sh scriptVictor Morales1-7/+7
This script was changed some instructions which was reported by shellcheck tool and fix some non-ubuntu instructions. Change-Id: If7dce994f024d99aa8f4d306da928e616774b013 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2019-03-06Cleanup kubespray config valuesVictor Morales1-12/+1
There were some kubespray configuration values that are not needed and some are causing conflicts with the dashboard. This change removes them. Change-Id: I6e58b9faf45a24bb29e2760976a157a759ac3115 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2019-03-04Updating virtlet versionAkhila Kishore1-1/+1
Change-Id: I39dec4a2dade465ea7cd561354724dd67cd28d20 Signed-off-by: Akhila Kishore <akhila.kishore@intel.com> Issue-ID: MULTICLOUD-301
2019-02-28Add cFW scripts folderVictor Morales10-0/+337
The Dockerfiles that are used for building the Docker images during the testing the Hybrid Firewall ONAP use case are hosted in an external repo. This change includes the latest working version for those scripts. Change-Id: I92c10c3161820ac09a94ff997c6bc39617278965 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2019-02-27Merge "Fix setup.sh sudo permissions"Victor Morales1-8/+12
2019-02-25Change Docker execution permissionsVictor Morales1-0/+4
The k8s pluging is running with root user in the Docker image, this execution can compromise the host system. Therefore, it's necessary to explicit change those permissions. Change-Id: I2455895662c68943f5c8800dfff1aaf6202bd870 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-492
2019-02-22Merge "Updating kubespray version."Victor Morales1-1/+1
2019-02-21Updating kubespray version.Akhila Kishore1-1/+1
Change-Id: I9c84fbfe2ceea3166e8c4dd17fb8846eed554cee Issue-ID: MULTICLOUD-301 Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
2019-02-19Fix setup.sh sudo permissionsVictor Morales1-8/+12
There are some instructions in the setup.sh script file which require the addition of sudo instruction. This change fixes them. Change-Id: If680d9d9aac2a4b22d665b58ab31a4693c71588e Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2019-02-18Update committer INFOBin Yang1-10/+5
Remove those committers who decided to step down as a committer Change-Id: I393d36daa71370a5317d88f2809696496b0f2c3c Issue-ID: MULTICLOUD-484 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2019-02-14Adding the keyword SNAPSHOT to build script.Akhila Kishore1-1/+1
This fixes the version tag for K8s plugin modifying the image name. Change-Id: Ie88279200607dfe4338b2490647cf02a4e2d056c Issue-ID: MULTICLOUD-301 Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
2019-02-06Remove external script referencesVictor Morales1-5/+5
The integration_* test scripts have some references to external repositories that are out of the ONAP project scope. This change removes those references to keep everything defined in this repo. Change-Id: I0e829c6215efaf3cde9f5198f235b15350ac8235 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2019-02-06Add vFW scripts folderVictor Morales6-0/+343
The bash scripts that are used for testing the Firewall ONAP use case are hosted in an external repo. This change includes the latest working version for those scripts. Change-Id: Ic2d371a3e715d867cb4e61e0ad13da812edeea45 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
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-28Add support for downloading contentKiran Kamineni6-2/+400
Add support for downloading content for creating the merged helm charts. This api will be used mainly by the profile api to create a converged chart which will then be created by the instantiation code P2: Add unit tests for archive.go Add download method for profile.go Update comments for download method P3: Add unit test for empty files P4: Add unit tests for Download functions P5: Rebase against new folder structure Issue-ID: MULTICLOUD-291 Change-Id: I9779eaf95366f527f0360eaddea663722c13b196 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-01-28Merge "Remove duplicate plugins make action"Victor Morales1-3/+2
2019-01-25Move api.go functionsVictor Morales3-78/+74
CheckEnvVariables, CheckDatabaseConnection, LoadPlugins and CheckInitialSettings functions are utility functions which are not related with the API. These functions need to be moved to utils.go file. Change-Id: Ie6dfbafe8909962fba31534916a7e0f07ded116b Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2019-01-25Use a standard Go project layoutVictor Morales35-95/+97
This project wasn't following some Standard Go Project Layout guidelines(https://github.com/golang-standards/project-layout). This change pretends to organize the source code and following those guidelines. Change-Id: I61085ac20f28069cede013f83034bed06892d87c Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2019-01-25Merge "Add another parameter to the definition"Victor Morales4-2/+33
2019-01-25Add another parameter to the definitionKiran Kamineni4-2/+33
Add a ChartName parameter to definition This is need to explicitly specify the chart name to be used within the tar file. Issue-ID: MULTICLOUD-291 Change-Id: I3d6e20607b74e54801622a6c27d5674777548ee1 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
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
2019-01-25Version update.Akhila Kishore1-1/+1
Updating the version of galaxy role kubectl to latest. Change-Id: Ie985516713700a0db21d032084c158e16516cf3f Signed-off-by: Akhila Kishore <akhila.kishore@intel.com> Issue-ID: MULTICLOUD-301
2019-01-23Add support for tags in the mockdbKiran Kamineni4-103/+151
Add support for tags in mockdb. Needed for supporting unit tests where a method does multiple db calls using same uuid but different tags. Eg: Download methods Issue-ID: MULTICLOUD-455 Change-Id: I4eff8eeb00eac630205e4e186981a53a573b61fa Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-01-22Merge "Fix sorting with right index value"Victor Morales4-8/+8
2019-01-22Merge "Delete content when a definition is deleted"Victor Morales1-0/+6
2019-01-22Merge "Enable statd service"Victor Morales1-0/+5
2019-01-18Fix sorting with right index valueKiran Kamineni4-8/+8
Fix the less function used in sort.Slice with the right index. I am using the same index which obviously will not work. Issue-ID: MULTICLOUD-439 Change-Id: Ibb78c03d67cf59e3941acc786796d0cc69b4f0aa Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-01-18Delete content when a definition is deletedKiran Kamineni1-0/+6
When a definition is deleted, delete the content too. Not deleting the content would leave blobs of data that is not connected to any metadata in the mongo database. Issue-ID: MULTICLOUD-393 Change-Id: Ifae55bab0affc22b06b1069a27cd90af6f7d5d98 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-01-18Account for strings when reading from dbKiran Kamineni1-1/+7
Strings are not returned unmodified by the mongo driver and seem to have a size value prepended to them. Using the built in string reader resolves this issue. Issue-ID: MULTICLOUD-441 Change-Id: I5c5e35b0749a61b741c9b63cfad55bf2720d91bb Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-01-18Merge "Add resource bundle profile api"Victor Morales11-12/+1212
2019-01-17Add resource bundle profile apiKiran Kamineni11-12/+1212
Add CRUD api for uploading profiles for specific definition resource bundles. - Adding unit tests Issue-ID: ONAPARC-348 Change-Id: Ic43724b4e2c035e7989c827612f1b2800fc49a69 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>