Read PrimaryCollector parameters from env variables 57/857/2
authorKatri Turunen <katri.turunen@nokia.com>
Mon, 2 Sep 2019 07:28:52 +0000 (10:28 +0300)
committerKatri Turunen <katri.turunen@nokia.com>
Mon, 2 Sep 2019 07:39:37 +0000 (10:39 +0300)
commit66b7813221b6da5c15da40953d09d3846a4bc029
tree33733149c2b37806553d17c87cd18ffb85f445d4
parent4b74f01111b3b14fbb3832d8aaf4946cded374a0
Read PrimaryCollector parameters from env variables

The following environment variables are expected:
VESMGR_PRICOLLECTOR_USER
VESMGR_PRICOLLECTOR_PASSWORD
VESMGR_PRICOLLECTOR_PASSPHRASE
VESMGR_PRICOLLECTOR_SERVERROOT
VESMGR_PRICOLLECTOR_TOPIC
VESMGR_PRICOLLECTOR_SECURE

Vesmgr now passes the parameters to VESPA via yaml instead of cmd line.

This commit contains also the following changes:
- Correcttion to VESPA configuration: FixAdditionalObject --> FixAdditionalObjects
- Added UT run to Dockerfile as part of the build.

Change-Id: Ib15916dba8c22a19a50da6d77e1e5a54418f2ff4
Signed-off-by: Katri Turunen <katri.turunen@nokia.com>
Dockerfile
README.md
cmd/vesmgr/config.go
cmd/vesmgr/config_test.go
cmd/vesmgr/vesmgr.go
ves-agent-chart/templates/deployment.yaml