aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
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>
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-11-01Check for err when namespace plugin returnsKiran Kamineni1-1/+8
Check for err when a namespace GET is called. This will catch any errors related to the cluster GET operations before the subsequent call is made. Issue-ID: MULTICLOUD-666 Change-Id: I47de130f7ae9e6fea627f3a881ea84b2880db886 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-10-29Update profilehandler commentsMarcus G K Williams1-9/+9
Issue-ID: MULTICLOUD-828 Signed-off-by: Marcus G K Williams <marcus.williams@intel.com> Change-Id: Ib7678c6829916cb7e29611d151f7d67c2a274faf
2019-10-25Implementing suggested changessanjaymekhale3-0/+34
Renamed package from logs to logutils Issue-ID: MULTICLOUD-577 Change-Id: I05e2acbfbb5dd79bd26df73e0ad64c2068b9f6e5 Signed-off-by: sanjaymekhale <sm00557598@techmahindra.com>
2019-10-15Add unit testsKiran Kamineni2-3/+219
Add unit tests for the handler as well as backend status function Issue-ID: MULTICLOUD-675 Change-Id: I4c73e2c18f243702f3e791fec48d4bc5023cafd5 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-10-15Add a status getter api endpointKiran Kamineni3-4/+73
Add a status endpoint to get status of instances. Status information will be added to the database asynchronously. Issue-ID: MULTICLOUD-675 Change-Id: Ia7d79a6f18f01bf24f2690caf74a48c2a082bd73 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-10-11Remove unused codeKiran Kamineni2-127/+0
Remove unused code. This is part of the old legacy code and will anyway have to be re-implemented whenever the update functionality gets added. Issue-ID: MULTICLOUD-666 Change-Id: I02a91a2b221da9d82433f8c2ee1dd014a81e4f4d Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-09-13Update to kubernetes 1.14.1Kiran Kamineni4-144/+465
Updated package to use kubernetes 1.14.1 Also updated the other packages that no longer worked because of this change. Issue-ID: MULTICLOUD-666 Change-Id: Ibfdf7215d8d7beceabe1bf895a356017da0b7d9c Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-09-05Update package path to use githubKiran Kamineni21-32/+32
Update the package path to use the standard github.com path instead of making it a local path. This allows import from other go projects. Issue-ID: MULTICLOUD-666 Change-Id: I90ee8eba021a84e31a3dc3ab48b9edf3731e91a4 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-09-05Merge "Remove ovn4nfvk8s network plugin"Ritu Sood9-689/+0
2019-09-05Merge "Add a namegenerator package"Ritu Sood4-11/+158
2019-09-05Remove ovn4nfvk8s network pluginKonrad Bańka9-689/+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-04Fix test failure in threaded testsKiran Kamineni11-4/+176
Fix bug in tests where they can fail in highly threaded environments where a file can be accessed by two test processes. Fixed it by duplicating the test case. Issue-ID: MULTICLOUD-689 Change-Id: I93b9862fac52eb307e52c355e3cb0d4332768b4f Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-09-04Remove dependency on git.apache.orgKiran Kamineni2-2/+2
Remove dependency on git.apache.org Issue-ID: MULTICLOUD-666 Change-Id: I39f43f841747ab1f67cc57c587c1a31bb089869a Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-09-03Merge "Remove double thread restriction on build"Ritu Sood1-1/+1
2019-09-03Merge "Remove gopath from builds"Ritu Sood2-5/+0
2019-08-30Remove gopath from buildsKiran Kamineni2-5/+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-08-28Adding informers for CRDKiran Kamineni6-0/+456
Adding generated informers for CRD These informers will be needed when we want to watch these CRDs from the ONAP cluster Generated using generate-groups.sh from the kubernetes/code-generator repo Issue-ID: MULTICLOUD-675 Change-Id: Ib7547666efa389534f0501f8dbab14c284dd76a6 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-08-28Adding listers for CRDKiran Kamineni2-0/+120
Adding generated listers for CRD Generated using generate-groups.sh from the kubernetes/code-generator repo Issue-ID: MULTICLOUD-675 Change-Id: I6c68a9e98d96ed77b9e5fb78cb2458f9c0f4d55d Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-08-28Adding typed client for CRDKiran Kamineni19-4/+963
Adding a typed client for CRD Generated using the generate-groups.sh script from the kubernetes/code-generator repo Issue-ID: MULTICLOUD-675 Change-Id: I6c712980595dfed7a8b9c51f50edfc6788372dfd Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-08-28Adding monitor operator to monitor edge resourcesKiran Kamineni30-1/+1974
Add an operator to monitor resources at the edge location. The operator listens to pods and services right now and stores their information in a CustomResource Issue-ID: MULTICLOUD-675 Change-Id: I801478a77fcd019010ea1b4388d6077f63b89d05 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-08-26Add a namegenerator packageKiran Kamineni4-11/+158
Adds a namegenerator package which generates readable names for instances. This will go with a small change in the API where we expect instance names and will generate the names if they are not provided. Issue-ID: MULTICLOUD-716 Change-Id: I69d8b7fb62667b8b60f3e02eb26dc937961d26d2 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-08-19Merge "Add query parameters support to instance API"Ritu Sood6-177/+146
2019-08-13Add query parameters support to instance APIKiran Kamineni6-177/+146
Add support for query parameters to find instances with rb-name, rb-version, profile-name as query parameters eg: curl IP:PORT/v1/instance?rb-name=test&rb-version=v1 Issue-ID: MULTICLOUD-662 Change-Id: If68c87885c8b8dd097cbb3860e8c7320310a6ef7 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-08-13Fix bug in tagging podTemplatesKiran Kamineni1-24/+11
Fix a bug in tagging podTemplates Using the runtime converter to convert unstructured map data to podTemplateSpec now. Issue-ID: MULTICLOUD-675 Change-Id: I661d3c63ae39b3533bb9c0a9934fc507284c7074 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-08-07Merge "Add top level make"Ritu Sood1-0/+11
2019-08-07Add custom label to track created resourcesKiran Kamineni10-35/+142
Create a custom label on created resources Also, create it on pods where pods are being created. This will help us later for filtering and querying pods and resources. Issue-ID: MULTICLOUD-675 Change-Id: I4b4fce7b67f9f27559d99dcca94a9191b96cb7c6 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>