Add join-scripts endpoint

* Adds initial join-scripts API
* Updates resiliency test to leverage API for joining

Change-Id: Ibe0d42b8f4f4a3e1f6f102dee85a22cb8f78f8ec
This commit is contained in:
Mark Burnett
2017-11-02 14:37:14 -05:00
parent 6caf7fb54d
commit b4d9596468
20 changed files with 361 additions and 159 deletions

View File

@@ -33,6 +33,8 @@ def insert_charts_into_bundler(bundler):
for root, _dirnames, filenames in os.walk(
'/opt/promenade/charts', followlinks=True):
for source_filename in filenames:
if _source_file_is_excluded(source_filename):
continue
source_path = os.path.join(root, source_filename)
destination_path = os.path.join('etc/genesis/armada/assets/charts',
os.path.relpath(
@@ -139,6 +141,10 @@ def _default_no_proxy(network_config):
return ','.join(include)
def _source_file_is_excluded(source_filename):
return source_filename.endswith('.tgz')
def _yaml_safe_dump_all(documents):
f = io.StringIO()
yaml.safe_dump_all(documents, f)