summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-04-15Fix build errorKiran Kamineni1-3/+3
Build is broken because of some changes that were merged without being rebased on dependent patches. Issue-ID: MULTICLOUD-350 Change-Id: If8bd455103dea3191fedb39ea525efaafb145953 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-12Merge "Add Connectivity Info API"Bin Yang3-0/+256
2019-04-12Merge "Day 2 Configuration API's"Bin Yang16-14/+1966
2019-04-11Add Connectivity Info APIrsood3-0/+256
API to add connectivity information for Cloud Regions to K8s Plugin https://wiki.onap.org/display/DW/MultiCloud+K8s-Plugin-service+API%27s Change-Id: I0a9166df9b076a7fdacf0b2f9e51a9cdebe4b621 Signed-off-by: rsood <ritu.sood@intel.com> Issue-ID: MULTICLOUD-292 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-11Merge "Provider network support when OVN is used"Bin Yang2-0/+256
2019-04-11Merge "Add support for so integration"Bin Yang3-0/+395
2019-04-11Add support for so integrationKiran Kamineni3-0/+395
Add support for the multicloud-api that is called by SO for instantiation. Issue-ID: MULTICLOUD-350 Change-Id: Icf9137dae9796ac256c3319b49af6c30b275a4a9 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-11Merge "Add option to start https listener"Bin Yang6-1/+214
2019-04-11Merge "Using the --chown flag to reduce image size"Bin Yang1-2/+3
2019-04-10Add option to start https listenerKiran Kamineni6-2/+215
Added support for tls connection for k8splugin. It will load the certificates from its current folder. Any installer needs to just put these files in the same folder as the executable and it will pick them up and start in https mode. Issue-ID: MULTICLOUD-570 Change-Id: I505135daa3933b76023c941e7bee54be65fa791f Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-11Day 2 Configuration API'srsood16-14/+1966
This patch adds Configuration API's https://wiki.onap.org/display/DW/MultiCloud+K8s-Plugin-service+API%27s Change-Id: I52ebfc5aa980ec8af4a31569d569216e9a2a760c Issue-ID: MULTICLOUD-464 Signed-off-by: rsood <ritu.sood@intel.com>
2019-04-10Using the --chown flag to reduce image sizeKiran Kamineni1-2/+3
Patch to reduce the size of the docker image for multicloud/k8s image Reduces size by about 300mb Issue-ID: MULTICLOUD-350 Change-Id: I240c57267180c020b659795ea965f5c0877252fc Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-10Provider network support when OVN is usedRitu Sood2-0/+256
Example script is provided to create OVN provider networks. Test case is provided to place workloads on the OVN provider network using ovn4nfv-k8s-plugin Change-Id: I94a9fe4fe0b107e42bbf890093e70233a5f610f5 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Issue-ID: MULTICLOUD-454
2019-04-10Add support for generic pluginKiran Kamineni4-5/+239
Add support for generic kinds We are currently using a known map to find the group version resource for a kind. Issue-ID: MULTICLOUD-350 Change-Id: I5a64f73760b73cf92b9a3fab8c22ad54e0a5f84f Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-10Export kubernetesClientKiran Kamineni3-12/+12
Export kubernetesClient. There are situations where this will need to be accessed in the plugins and we need the definition to be exported for that. Issue-ID: MULTICLOUD-350 Change-Id: I9eee03ea77e390effd33ed96cbbc25dc4cd09cdd Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-10Merge "Fix integration test plugin.sh"Bin Yang1-21/+22
2019-04-04Use consistent naming for Name and VersionKiran Kamineni6-58/+59
Definition Name and Definition Version are now using the consistent naming similar to the Profile and instance structure. Name becomes RBName Version becomes RBVersion Issue-ID: MULTICLOUD-350 Change-Id: Ifc329d4979a06cb017c6f9d916c227c696b664e0 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-04Fix integration test plugin.shKiran Kamineni1-21/+22
Update the integration test plugin.sh with the latest api changes to instance management. Issue-ID: MULTICLOUD-350 Change-Id: Ie451b7378a774f3e382c5a46a9df2bbaf0f273a8 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-04Use common code for executeRequestKiran Kamineni2-27/+9
Use the common executeRequest function instead of multiple copies of the same lines for test requests Issue-ID: MULTICLOUD-557 Change-Id: Icde498b55592333af265fc348f3a286a59b9b61c Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-04Merge "Add url path tests to definition handler"Bin Yang1-33/+38
2019-04-04Merge "Add url path tests to profile handler"Bin Yang1-49/+45
2019-04-03Add url path tests to profile handlerKiran Kamineni1-49/+45
Improve the profile tests by testing the url path parameters as well. Issue-ID: MULTICLOUD-547 Change-Id: Ib31a42cc6c3622d17ddc37eb0506ca991d2334c0 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-03Add url path tests to definition handlerKiran Kamineni1-33/+38
Url path parameters are not tested in the current unit tests. This is fixed with the use of the same router that is used by the main program. Issue-ID: MULTICLOUD-547 Change-Id: Ie162150fb1ecf22766011339e68e03f1067779a0 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-03Refactor instance codeKiran Kamineni16-1412/+1157
Issue-ID: MULTICLOUD-350 Change-Id: I2574d94e4ebada1e138913b2a03549dd90906d7b Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-02Minor update KRD to KUDAkhila Kishore1-1/+1
Change-Id: Id553c1300e6559443d87c58abf46bab81bf71535 Signed-off-by: Akhila Kishore <akhila.kishore@intel.com> Issue-ID: MULTICLOUD-301
2019-04-02Merge "Make profile key explicit"Victor Morales7-44/+44
2019-04-01Remove build tagsKiran Kamineni18-46/+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-29Make profile key explicitKiran Kamineni7-44/+44
Using profilename instead of name in the db key protects it from getting overwritten by anything else that might use name as a key. Using explicit key names makes sure that we don't have to add bson structure tags in the code. Issue-ID: MULTICLOUD-558 Change-Id: I9bd6f757496af22d8662b0d114f0ef7d33a5784a Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-03-29Fix merge issueKiran Kamineni1-2/+2
The TestUpdate method was updated properly with the merge on to master. This fixes that issue. Issue-ID: MULTICLOUD-553 Change-Id: I97c95b628fade37304590de59bb4bb6faaeb4450 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-03-29Merge "Fix document typo in readme.md"Bin Yang1-4/+3
2019-03-29Merge "Add update method to db interface"Bin Yang5-1/+132
2019-03-28Fix document typo in readme.mdKiran Kamineni1-4/+3
Fix some small typos in the readme.md file Issue-ID: MULTICLOUD-350 Change-Id: I7ad44170ce773779e5c19711618ac8c349b618a9 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-03-27Add update method to db interfaceKiran Kamineni5-1/+132
Add update interface to the db. This will allow us to support PUT http methods in the future. Issue-ID: MULTICLOUD-553 Change-Id: I7263d42e893734eadbdaf78022005d6004601772 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-03-26Update definition and profile to latest specKiran Kamineni20-688/+867
Bringing all the definition and profile code upto the latest spec. Integrated the end to end instance code changes that were made. P9: Added updated plugin.sh with updated uri paths based on spec Issue-ID: MULTICLOUD-291 Change-Id: Id6e3c6bc2cd02cfb7005e203ccf03e0793b97e95 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-03-26Merge "Fix namespace creation"Bin Yang2-5/+2
2019-03-26Merge "Add support for composite keys"Bin Yang9-158/+236
2019-03-26Merge "Enable random_hostname vagrant-libvirt value"Bin Yang1-3/+6
2019-03-25Fix namespace creationRitu Sood2-5/+2
Namespace is being created by k8splugin if it doesn't exist. This is done before other resources are created in kubernetes. This patch removes check that failed if namespace didn't exist Change-Id: I8c5b2409ad1cf77d5f529f601870fcf87e8e8760 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Issue-ID: MULTICLOUD-462
2019-03-25Add support for composite keysKiran Kamineni9-158/+236
Composite keys help us store objects which are unique for a given set of pre-existing objects. Eg: Many profiles can exist for a definition and its key will have a definition name as a part of the composite key. P2: Use a predefined interface for keys instead of generic interfaceP{} P3: Add check for empty strings in stringer interface P5: Add appropriate keys in other packages. Issue-ID: MULTICLOUD-531 Change-Id: I314b1fbd718489ae8a45f0f38915c08ca32f9f43 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-03-24Updating the path inside README.Akhila Kishore1-1/+1
Correcting the path to diagram.png on the Readme in KUD folder. Change-Id: I6be0c4137f810277d81593bfb0f62b1b2332540b Issue-ID: MULTICLOUD-301 Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
2019-03-22Enable random_hostname vagrant-libvirt valueVictor Morales1-3/+6
This configuration value allows to generate Libvirt instances with randomly domain names generated. As result, it's possible to use this project in the same server but in different folders at the same time. As part of the change, it was necessary to centraliza some Libvirt common configurations. Change-Id: Ie6adf3f40de7a8cced875b0c899738f9f6449181 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2019-03-22Merge "Use httptest instead of http in unit tests"Victor Morales6-152/+105
2019-03-22Merge "Restructuring the repo."Victor Morales132-101/+142
2019-03-22Use httptest instead of http in unit testsKiran Kamineni6-152/+105
Use httptest instead of http in unit tests similar to: https://golang.org/pkg/net/http/httptest/#example_ResponseRecorder Update empty body checking to account for change Issue-ID: MULTICLOUD-545 Change-Id: Ib9775078c2c9ae2878b714363b569d8d79bd7698 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-03-22Restructuring the repo.Akhila Kishore132-101/+142
The idea is to restructure the existing repo create a deployment independent of Vagrant or other hosting providers. Renamed KRD to KUbernetes Deploy(Kud) including the ansible scripts Added new path to functional tests. Moved samples pdfs to sites. Minor changes to Readme. Updated aio.sh, moved sample config Corrected other nits. Updated and verified test cases. Addressed comments and changes associated with it. Updated Readme and minor change in Vagrantfile. Validated test cases again. Moved aio.sh into vagrant folder. Added new README for each hosting provider and project on the whole. Updated the installer script with relative path. Updated the name to deployment_infra, moved the cFW sripcts to tests. Updated the gitignore file. Issue-ID: MULTICLOUD-301 Change-Id: Ie48c26b12ab58b604493fba58a9c5b9f8ba10942 Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
2019-03-22Merge "NewRouter supports custom backend clients"Victor Morales3-16/+23
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