aboutsummaryrefslogtreecommitdiffstats
path: root/deployments
AgeCommit message (Collapse)AuthorFilesLines
2019-04-19Move configuration into config filesKiran Kamineni1-7/+13
Move k8splugin configuration into config files instead of using environment variables. Issue-ID: MULTICLOUD-579 Change-Id: I7b76d5a14d24f002a8db484097a31fb5e908b6f8 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-04-17Fix docker buildKiran Kamineni1-1/+1
Docker build is broken. This patch fixes it. Issue-ID: MULTICLOUD-575 Change-Id: I0edc900dfc66baa409c92eb656bd5d7886d6aa40 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@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-03-20Merge "Switch to xenial Docker image"Bin Yang1-1/+1
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-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-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-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-01-06Refactor docker-compose variablesVictor Morales3-19/+23
The default environment variables required by docker-compose.yml file was exported to .env file to have better control on them. Change-Id: I52408cbf6e6918621a10158866d899d5f66a47eb Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-12-19Merge "Add Network and OVN4NFV Plugins"Victor Morales1-1/+7
2018-12-14Migrating from consul to mongodb for backendKiran Kamineni2-14/+9
Migrating to mongodb from consul. The main reason being the value size limitation of 512kb in consul. See https://jira.onap.org/browse/MULTICLOUD-426 for details. This requires a little bit of hierarchy management and data management. We are no longer converting structs to json encoded strings. The underlying db supports structs without any modifications. Also, since Mongo has the concept of collections, each submodule can use its own collection for storage as needed. Definition uses a collection called rbdef right now. P10: Enabling unit tests for mongo.go. This requires the usage of aliased functions. P11: Expanded unit tests for all functions in mongo.go P12: Refactored parameter validation. Removed TestHealthCheck as we are not mocking any of the db commands right now Checking return value of read with an expected value P13: Adding back consul support. Fixing functional test Full consul implementation check and modifications is being tracked by MULTICLOUD-427 P15: Fix ReadAll unit test and corresponding code ReadAll now returns error when no objects are found Issue-ID: MULTICLOUD-426 Change-Id: I42d239b324025fc4ef4e561790aceeff794001ef Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-12-07Enable downloading binaries and containersVictor Morales1-1/+3
The *download_run_once* kubespray config option allows to download container images only once then push to cluster nodes and the *download_localhost* option makes the installer node a delegate for pushing images while running the deployment with ansible. These two options pretends to reduce the amount of traffic during the deployment time of the Kubernetes cluster. Change-Id: I8239cebbf5c322ed52ae0a0bc8774e5e33aada3c Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-425
2018-12-05Add Network and OVN4NFV PluginsRitu Sood1-1/+7
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-11-07Fix start.sh scriptVictor Morales1-1/+2
The start bash script is used during development phase to quickly test some changes in source code. This script requires to get the IP address of the Consul database and export the image name. This change fixes those instructions Change-Id: I73c4c4be0a9476304bedcd4c62a723ff1ecc7f7c Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-10-31Migrate from dep to go modKiran Kamineni1-1/+1
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-10-19Merge "Improve build process"Bin Yang3-16/+52
2018-10-19Merge "Add License headers"Victor Morales1-0/+9
2018-10-18Improve build processVictor Morales3-16/+52
The build process is used by Jenkins Daily Jobs to generate images as well as the provisioning vagrant process. This change pretends to satisfy both processes. Change-Id: I53d77b0e64f2482e612e59d5a3881fae53c63cbd Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-10-18Add License headersVictor Morales1-0/+9
Change-Id: I1502c812f29ca8a6d1f819b9459c00597be09305 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-10-18Remove source /etc/environemnt instructionVictor Morales2-4/+1
Apparently this instruction is overriding the GOROOT value during the execution in the Jenkins Jobs. Change-Id: I97768db029ae21939bfde4753f87387ea976985c Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-10-01Fix build.sh deployment scriptVictor Morales1-0/+3
The build.sh file didn't include the GOPATH variable which in some cases was causing some building failures. This change includes a source instruction at beginining of the file. Change-Id: I718411fd90ede74decbaac7efc5c065aa5a853fc Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-11Complete Plugin Functional TestsVictor Morales2-7/+33
It was fixed the issue to connect the plugin with the consul DB. This was a main roadblock to complete the functional Tests for the plugin. Change-Id: I3032e82a8f6baf4739c7433a5ffa97dac23daac8 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-10Add no_proxy config value to docker-compose.ymlVictor Morales1-0/+1
The no_proxy configuration value was missing in the docker-compose.yml this was causing a different behaviour when the functional tests were running and consuming the services on the container. Change-Id: Ie88e88d50e0ec9c4aa0d03367f2a9d25edccb753 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-06Improve compilation processVictor Morales2-6/+41
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-05Add PLUGINS_DIR varVictor Morales1-0/+1
The docker-compose.yml file was missing PLUGINS_DIR environment variable required for the plugin to discover the *.so files. Change-Id: I7fa451ba0b3d6fd722728176b7b35cf5b3dd4db3 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-08-31Update building processShashank Kumar Shankar2-20/+15
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-30Add KRD source codeVictor Morales1-2/+4
This changes includes the source code created for the Kubernetes Reference Deployment(KRD) which helps to provide an automated mechanism to install and configure Kubernetes services required for the MultiCloud/K8s plugin. Change-Id: Ica49566fcd531e25846ed3e5062de2f92ec56f6c Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-08-24Seed code for k8s multicloud pluginShashank Kumar Shankar3-0/+94
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>