aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2020-03-11Add Delete and DeleteAll functionality to etcdRitu Sood2-1/+16
Currently only supports DeleteAll. Issue-ID: MULTICLOUD-871 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I9ee03648462c5a04481c89bf864cdec35cfd4230
2020-03-10Handle uncommon format of proper tar archiveKonrad Bańka2-2/+46
Provide proper handling of tar archives containing "current directory", but stored in format: ``` . file2.txt dir1/ dir1/file1.txt ``` instead of typical: ``` ./ ./file2.txt ./dir1/ ./dir1/file1.txt ``` Issue-ID: MULTICLOUD-1025 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: Ideffd019255a9f2d029527066e5a6a03d45a2d7b
2020-03-06Merge "Adding Remove function to Mongo"Bin Yang4-4/+50
2020-03-06Merge "Change DB Name to accept variable"Ritu Sood3-7/+7
2020-03-05Adding Remove function to MongoRitu Sood4-4/+50
Adding remove function to remove a document only if no child refrences exist. Issue-ID: MULTICLOUD-922 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I7d199502635170a65f7029360c7436ac0389f2a9
2020-03-05Add API support to handle App ProfilesEric Multanen11-26/+748
Add support for profiles per App under composite profiles. See: https://wiki.onap.org/display/DW/V2+API+Specification#V2APISpecification-Addingprofileperapplication Issue-ID: MULTICLOUD-997 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I8569066d903327d640e315d0de835605ca1779c0
2020-03-05Composite Profile API and HandlerDileep Ranganathan10-29/+712
Implemented Composite Profile API and handler, adding create, get and delete handlers for the composite profile. Issue-ID: MULTICLOUD-997 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com> Change-Id: Iab105cf88ef4635038cd36e90f3251bc900b2faf
2020-03-05Change DB Name to accept variableenyinna12343-7/+7
This enables the initialization of the mongo database name with a variable. Issue-ID: MULTICLOUD-996 Signed-off-by: Enyinna Ochulor <enyinna.ochulor@intel.com> Change-Id: Id3f07b47cedde16235ee7078e1e6f4d287106d29
2020-03-05Merge "Updating AAI wit resource info : part4"Ritu Sood2-0/+245
2020-03-05Merge "Updating AAI wit resource info : part3"Ritu Sood6-0/+649
2020-03-05Merge "Updating AAI wit resource info : part2"Ritu Sood1-0/+94
2020-03-05Merge "Updating AAI wit resource info : part1"Ritu Sood4-0/+588
2020-03-04Add DeploymentIntentGroup APIsRajamohan Raj16-47/+941
Implemented the routes for creation, deletion and getting DeploymentIntentGroup. Added routes for adding, getting and deleting intents. Issue-ID: MULTICLOUD-1002 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I07ba3744107bcf30aa30ed89caa21bf474c0d92a
2020-03-04Updating AAI wit resource info : part4vamshi.nemalikonda2-0/+245
adding utils. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d3909f3378704 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com> Updating AAI wit resource info : part4 improvements for utils. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d3909f3378704 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com>
2020-03-04Updating AAI wit resource info : part1vamshi.nemalikonda4-0/+588
review comments implemented. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d2709f3700107 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com> Updating AAI wit resource info : part1 improvements for controller. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d2709f3700107 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com>
2020-03-04Updating AAI wit resource info : part2vamshi.nemalikonda1-0/+94
adding constants. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d2709f3800808 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com> Updating AAI wit resource info : part2 review comments fixed for constants. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d2709f3800808 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com>
2020-03-04Updating AAI wit resource info : part3vamshi.nemalikonda6-0/+649
adding api module. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d2709f4700107 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com> Updating AAI wit resource info : part3 review comments fixes. Issue-ID: MULTICLOUD-457 Change-Id: Icf97d13a6c683b8f09491491ed2d2709f4700107 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com>
2020-03-03Implemented AppIntents and GenPlaceIntentsRajamohan Raj14-45/+1186
Implemented the routes for creating, getting, and deleting generic placement intents and App intents. Issue-ID: MULTICLOUD-875 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Iecb11c442958a43a517772e066de45213e3d7030
2020-02-28Add v2 cluster registration api to k8s orchestratorEric Multanen8-9/+2453
Adds orchestrator API support for creating cluster-providers, registering clusters and their kubeconfig, adding labels to cluster and key value paisr to clusters. See: https://wiki.onap.org/display/DW/V2+API+Specification#V2APISpecification-ClusterRegistrationAPI Issue-ID: MULTICLOUD-922 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I775a308e9ffb19acf65cb0e5752705998bc5b659
2020-02-28Remove String functionRitu Sood2-2/+3
Removing String from interface as this is not required anymore Issue-ID: MULTICLOUD-1001 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I40a950bb343f4cfcc5d51e52e44d0f788fc5e303
2020-02-27Update MongoDb to add new methodsRitu Sood5-260/+310
This patch adds new functions Insert, Find and Delete. These functions embeds fields in documents rather than storing as seprate documents. Issue-ID: MULTICLOUD-1001 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: Idda2893b5459bbeb441f8f0ea6141ad1f3a0aba2
2020-02-21Add Controller Register API to OrchestratorMarcus G K Williams8-8/+674
Add API allows Controllers to register themselves as gRPC servers consumed by the orchestrator. Issue-ID: MULTICLOUD-995 Signed-off-by: Marcus G K Williams <marcus.williams@intel.com> Change-Id: I75946a4af711bf2e9d65f354923db494da667e70
2020-02-20Merge "Add Composite Application API"Ritu Sood8-70/+345
2020-02-20Add Composite Application APISrivahni Chivukula8-70/+345
Implemented Composite application API and added create, get and delete handlers for the composite applications. Formatted Project related .go files Issue-ID: MULTICLOUD-994 Signed-off-by: Srivahni Chivukula <srivahni.chivukula@intel.com> Change-Id: I7cef1a2c75f8cb39f397dcbb3f5d7bb2a57b4a72
2020-02-20Provide OverrideParameters capability for infra_workload APIKonrad Bańka3-87/+272
Provide parameters provided in sdnc, oof and user directives as override parameters for instantiate call. Issue-ID: MULTICLOUD-838 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: I69c6dab82ee233b2365a656bfaf1c7d64e375c98
2020-02-19Merge "Add docker dev scripts expose mongo port"Ritu Sood5-0/+152
2020-02-19Made changes to the Project API.Rajamohan Raj5-43/+96
Issue-ID: MULTICLOUD-875 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Ie1e9404069dae883ece8c6b1ca5eb07d284f96c0
2020-02-19Add docker dev scripts expose mongo portMarcus G K Williams5-0/+152
Add docker file and scripts, modify docker-compose.yml to allow for developement using docker container. Expose mongo port for developement purposes. Issue-ID: MULTICLOUD-871 Signed-off-by: Marcus G K Williams <marcus.williams@intel.com> Change-Id: If17fac27247b3cee3ad2718b6d06ea188ea53733
2020-02-15Merge changes I56fb4643,Ia1e9802aBin Yang24-68/+737
* changes: Add etcd support in infrastructure layer Restructure code and create module library
2020-02-14Add etcd support in infrastructure layerRitu Sood5-1/+588
Create a etcd client and provide minimal functionality needed by the orchestrator for using etcd Issue-ID: MULTICLOUD-871 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I56fb4643addf43cdc59366e7163b66bb1618876d
2020-02-14Restructure code and create module libraryRitu Sood20-67/+149
Restructures and moves code to make it aligned with the current design. https://wiki.onap.org/display/DW/Multi+Cluster+Application+Scheduler examples/example_module.go shows how to import and use modules from this package. Patch#2 Updated example Issue-ID: MULTICLOUD-871 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: Ia1e9802a946a07dcca8f79f0e2250933ab3efa66
2020-02-07Add scripts for development for v2Ritu Sood3-0/+108
Adding scripts to pull docker images for mongo and etcd and run orchestrator Issue-ID: MULTICLOUD-871 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: Ib09db02ec67f1555ef722e0d5408017c9f73c70a
2020-01-23Merge "Update profilehandler comments"Ritu Sood1-9/+9
2020-01-17Merge "Add readme.md for database shim layer"Ritu Sood2-0/+246
2020-01-10Merge "Instantiate infra_workload based on vf-module-*-ids"Ritu Sood2-42/+21
2020-01-07Change missing profile HTTP response code to 404Konrad Bańka2-4/+20
Issue-ID: MULTICLOUD-967 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: I3d213f65ee37443a55b74255b475e27c0d93cf2c
2020-01-07Instantiate infra_workload based on vf-module-*-idsKonrad Bańka2-42/+21
Deprecate k8s-rb-definition-* parameters from sdnc_directives in favor of vf-module-*-id that are used by newer artifact broker. Issue-ID: MULTICLOUD-836 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: I26ae16bd53ced56ae11523584f900a102f6e0bb9
2020-01-03Merge "Add support for override values"Ritu Sood1-9/+18
2020-01-03Merge "Adding logging package to v2"Ritu Sood2-0/+29
2019-12-31Add readme.md for database shim layerKiran Kamineni2-0/+246
Add some documentation related to how the mongo backend is implemented Issue-ID: MULTICLOUD-666 Change-Id: I9dae429b1da004fbaa7ea694e6e58fa2d337a042 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-12-30Add support for a default profileKiran Kamineni2-0/+76
Added support for a default profile A profile with the name "default" gets created automatically when a rb definition is uploaded. Issue-ID: MULTICLOUD-885 Change-Id: I2baab179ff119f3e6335643ff619f071f11b017a Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-12-20Update write to store dataKiran Kamineni1-0/+14
This is to support multiple calls that might hit the database such as creation of profile within another definition create. Issue-ID: MULTICLOUD-666 Change-Id: I2cb8e705eaa5f825936156d7c626f16f373e28c0 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-12-19Add support for override valuesKiran Kamineni1-9/+18
Add support for override values which are equivalent to HELM --set options. A typical JSON with this option would look like this: { "rb-name": "edgex", "rb-version": "v1", "profile-name": "profile1", "override-values": { "edgex-core-consul.enabled": "false", "edgex-core-data.enabled": "false" }, "cloud-region": "k8sregionone" } Issue-ID: MULTICLOUD-863 Change-Id: I050b4c1a2922bfe1206964a0135863448638e4ef Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-12-11Fix ensureNamespace behavior failing on missing nsKonrad Bańka1-1/+4
The behavior is now amended to ignore namespace not found errors. Signed-off-by: Konrad Bańka <k.banka@samsung.com> Issue-ID: MULTICLOUD-955 Change-Id: Ifc180eca9e8195c38f0b0f268dd142a329405d3d Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-12-09Use http when not using tlsKiran Kamineni1-1/+6
Issue-ID: MULTICLOUD-666 Change-Id: I8838fb2d312c841fd421d0a887bcfe181f6281e9 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-12-06Set proper defaults for etcd configurationKiran Kamineni1-3/+3
Issue-ID: MULTICLOUD-666 Change-Id: I662555822b0bcf7264b64bbee9ff3760913be873 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-11-26Switch instantiation parameters source from user to sdnc parametersKonrad Bańka2-13/+40
Issue-ID: MULTICLOUD-941 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: I3a6c67eb442023f64600b65f5af54a49117a8c51
2019-11-25Adding logging package to v2Kiran Kamineni2-0/+29
Adding logging package to v2 This is migrated from v1 Issue-ID: MULTICLOUD-870 Change-Id: I9b74d77827475a1e1c588af7cb542f5be0cad7dc Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-11-19Add v2 with project APIKiran Kamineni23-0/+2911
Definiton, Profile and other APIs will migrate to this area with support for Projects and v2. This patch adds the Project API only along with support for the Mongo database. Migration of other APIs will happen in future patches Issue-ID: MULTICLOUD-871 Change-Id: I2eb2d0db2384fd58d1ec874e24fa9125a1f5b288 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-11-08Update logutils to support multiple fieldsKiran Kamineni3-32/+104
Added support for multiple fields and updated instancehandler and app/client.go to use the new functions Issue-ID: MULTICLOUD-577 Change-Id: I7cc04f67e72448aa121d10cfd80d66d544981933 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>