Skip to content

Commit

Permalink
Merge pull request #11188 from openshift-cherrypick-robot/cherry-pick…
Browse files Browse the repository at this point in the history
…-11153-to-release-4.17

[release-4.17] [ROSA HCP] storage encryption. fix namespace issue
  • Loading branch information
dahorak authored Jan 22, 2025
2 parents 64ec12f + a05806e commit 5baf832
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ocs_ci/utility/kms.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,14 @@ def create_ocs_vault_resources(self):
token_data = templating.load_yaml(constants.EXTERNAL_VAULT_KMS_TOKEN)
# token has to base64 encoded (with padding)
token_data["data"]["token"] = encode(self.vault_path_token)
token_data["metadata"]["namespace"] = config.ENV_DATA["cluster_namespace"]
self.create_resource(token_data, prefix="token")

# create ocs-kms-connection-details
connection_data = templating.load_yaml(
constants.EXTERNAL_VAULT_KMS_CONNECTION_DETAILS
)
connection_data["metadata"]["namespace"] = config.ENV_DATA["cluster_namespace"]
connection_data["data"]["VAULT_ADDR"] = os.environ["VAULT_ADDR"]
if Version.coerce(config.ENV_DATA["ocs_version"]) >= Version.coerce("4.10"):
connection_data["data"]["VAULT_AUTH_METHOD"] = self.vault_auth_method
Expand Down

0 comments on commit 5baf832

Please sign in to comment.