summaryrefslogtreecommitdiffstats
path: root/sms-service/src/preload
AgeCommit message (Collapse)AuthorFilesLines
2018-10-30Add a simple Retry to preloadKiran Kamineni1-4/+25
We are seeing in some environments that preload gets a connection refused error. Preload should retry before giving up in such cases. Currently default retry is 5 times after a wait of 5 secs each. Issue-ID: AAF-596 Change-Id: I06e1869374116d777a5dae3fccc72a35e793c6c9 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-25Move to go mod from depKiran Kamineni5-57/+9
Go 1.11 introduces a native functionality for package management. This replaces dep which is the tool we were using before. This patch switches SMS to use go mod instead of dep for package management. P2: Add GO111MODULE=on to the makefile Issue-ID: AAF-404 Change-Id: I462d210fbbe71bff1310a50993410ebc7d8f6fa8 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-17Upload secrets even when domain already existsKiran Kamineni1-0/+4
Upload secrets even when domain was created before Any secrets with same name are overwritten with new values and new secrets are added to the domain Provides capability to add to existing domains via the commandline Issue-ID: AAF-574 Change-Id: I77a842d8f16cf224b04c328ef2825ed7ea7deab1 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-08Add readiness check into the cmd line3.0.0Kiran Kamineni1-3/+69
Preload is not checking if SMS is ready or not before issuing the upload commands. This patch fixes that behavior. Issue-ID: AAF-545 Change-Id: I485aeab4f797cacce1036cd6e24910c65fa4eb69 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-08Fix bug in directory read with json filesKiran Kamineni1-5/+11
The cmdline tool to preload json files is reading from CWD instead of using the provided commandline dir. Issue-ID: AAF-544 Change-Id: I8af23f0556ff678c33223e6f6acac402a39dd662 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-05Add preload cmdline tool to docker containerKiran Kamineni1-12/+1
Add the preload tool developed in patch 69786 to sms docker container. It will be used from there in the kubernetes configuration. Issue-ID: AAF-532 Change-Id: I7ca1d037514da0d56a6c47d6e0c6b845d2fd9a5e Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-04Add preload commandline app to load secretsKiran Kamineni5-0/+370
Add a preload golang app that reads configuration files and loads the domains and corresponding secrets to SMS. The tool can configured via command line options. P2: Add support for domains as well as domain in JSON P3: Add sampleformat.json Issue-ID: AAF-532 Change-Id: If3f880b8ce61a282dc015cac7df723453b91f114 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>