ukaea / piezo

1 stars 0 forks source link

Feature/make s3 bucket name configurable#115 #116

Closed robert-clegg-tessella closed 5 years ago

robert-clegg-tessella commented 5 years ago

Stories covered: https://github.com/ukaea/piezo/issues/115

S3BucketName is now a configuration item.

BotoAdapter was starting to contain to much business logic, and so the opportunity was taken to refactor: a StorageService now sits between the SparkJobService and the BotoAdapter.

The StorageService creates the designated bucket if it does not already exist.

Due to issues with conflicting key sets on the Kubernetes master node, the access key is logged when run_piezo.py initialises the application. The secret key is not logged for obvious reasons.

System tests still run fine, except for the first checking Grafana. This is unrelated to the changes made here.