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

Use external mcg endpoint in bucket utils #9733

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
reverse condition
Signed-off-by: fbalak <fbalak@redhat.com>
  • Loading branch information
fbalak committed Nov 4, 2024
commit 0faef55565b27346762f932b4c690a3169647ab9
9 changes: 4 additions & 5 deletions ocs_ci/ocs/resources/mcg.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,12 @@ def determine_s3_endpoint(self):
string: S3 endpoint URI
"""
return (
self.s3_internal_endpoint
self.s3_external_endpoint
if (
config.DEPLOYMENT.get("disconnected")
or config.DEPLOYMENT.get("proxy")
or config.ENV_DATA.get("private_link")
config.ENV_DATA.get("platform", "").lower()
in constants.HCI_PROVIDER_CLIENT_PLATFORMS
)
else self.s3_external_endpoint
else self.s3_internal_endpoint
)

def request_aws_credentials(self):
Expand Down
Loading