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

[release-4.17] [ROSA HCP] storage encryption. fix namespace issue #11188

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
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
Loading