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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user