From 3589644f7ef33151e71f1954ec01d6420d1135f8 Mon Sep 17 00:00:00 2001 From: Rafal Skolasinski Date: Fri, 7 May 2021 14:57:57 +0100 Subject: [PATCH] include seldonio/rclone-storageinitializer in release.py script --- release.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/release.py b/release.py index 0cf5b16bfd..d19d207562 100644 --- a/release.py +++ b/release.py @@ -145,6 +145,33 @@ def update_operator_values_yaml_file_core_images( print(err) +def update_operator_values_yaml_file_storage_initializer( + fpath, seldon_core_version, debug=False +): + fpath = os.path.realpath(fpath) + if debug: + print("processing [{}]".format(fpath)) + args = [ + "sed", + "-i", + "s|seldonio/rclone-storage-initializer:\(.*\)|seldonio/rclone-storage-initializer:{seldon_core_version}|".format( + **locals() + ), + fpath, + ] + err, out = run_command(args, debug) + + if err == None: + print("updated operator values yaml for storage initializer".format(**locals())) + else: + print( + "error updating operator values yaml for storage initializer".format( + **locals() + ) + ) + print(err) + + def update_operator_values_yaml_file_prepackaged_images( current_seldon_core_version, fpath, seldon_core_version, debug=False ): @@ -470,6 +497,9 @@ def set_version( update_operator_values_yaml_file_explainer_image( operator_values_yaml_file_realpath, seldon_core_version, debug ) + update_operator_values_yaml_file_storage_initializer( + operator_values_yaml_file_realpath, seldon_core_version, debug + ) if operator_kustomize_yaml_file != None: update_operator_kustomize_prepackaged_images(