Skip to content

Commit

Permalink
Merge pull request #100 from Jooho/cp-odh-3171
Browse files Browse the repository at this point in the history
cherry-pick fix-3171
  • Loading branch information
israel-hdez authored Oct 11, 2023
2 parents 4f93edd + 00a3413 commit 17082eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/kserve/kserve/storage/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ def _download_s3(uri, temp_dir: str):
endpoint_url = os.getenv("AWS_ENDPOINT_URL")
if endpoint_url:
kwargs.update({"endpoint_url": endpoint_url})
verify_ssl = os.getenv("S3_VERIFY_SSL")
if verify_ssl:
verify_ssl = verify_ssl != "0"
kwargs.update({"verify": verify_ssl})
s3 = boto3.resource("s3", **kwargs)
parsed = urlparse(uri, scheme='s3')
bucket_name = parsed.netloc
Expand Down

0 comments on commit 17082eb

Please sign in to comment.