Skip to content

Commit

Permalink
Merge pull request #10524 from petr-balogh/external-mode-rgw-secure-c…
Browse files Browse the repository at this point in the history
…heck

Fix external mode rgw_secure condition
  • Loading branch information
petr-balogh committed Sep 18, 2024
2 parents 508b2b9 + 8349260 commit b80d0e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocs_ci/ocs/awscli_pod.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def create_awscli_pod(scope_name=None, namespace=None, service_account=None):
f"cp {constants.SERVICE_CA_CRT_AWSCLI_PATH} {constants.AWSCLI_CA_BUNDLE_PATH}"
)

if storagecluster_independent_check() and config.EXTERNAL_MODE["rgw_secure"]:
if storagecluster_independent_check() and config.EXTERNAL_MODE.get("rgw_secure"):
log.info("Concatenating the RGW CA to the AWS CLI pod's CA bundle")
awscli_pod_obj.exec_cmd_on_pod(
f"bash -c 'wget -O - {config.EXTERNAL_MODE['rgw_cert_ca']} >> {constants.AWSCLI_CA_BUNDLE_PATH}'"
Expand Down
2 changes: 1 addition & 1 deletion ocs_ci/ocs/resources/rgw.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_credentials(self, secret_name=constants.NOOBAA_OBJECTSTOREUSER_SECRET):
cephobjectstore = cos_ocp_obj.get(
resource_name=constants.RGW_ROUTE_EXTERNAL_MODE
)
if config.EXTERNAL_MODE["rgw_secure"]:
if config.EXTERNAL_MODE.get("rgw_secure"):
endpoint = cephobjectstore["status"]["endpoints"]["secure"][0]
else:
endpoint = cephobjectstore["status"]["endpoints"]["insecure"][0]
Expand Down

0 comments on commit b80d0e9

Please sign in to comment.