From a05806eb9110c405402a5159cdfe467845f5a2ef Mon Sep 17 00:00:00 2001 From: Daniel Osypenko Date: Wed, 15 Jan 2025 17:46:30 +0200 Subject: [PATCH] fix namespace issue Signed-off-by: Daniel Osypenko --- ocs_ci/utility/kms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ocs_ci/utility/kms.py b/ocs_ci/utility/kms.py index 41b8ab3d877..f7bd4229783 100644 --- a/ocs_ci/utility/kms.py +++ b/ocs_ci/utility/kms.py @@ -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