Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include seldonio/rclone-storageinitializer in release.py script #3171

Merged
merged 1 commit into from
May 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand Down Expand Up @@ -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(
Expand Down