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

Fix noobaa-root-master-key not found error #9142

Closed
Closed
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
15 changes: 10 additions & 5 deletions tests/cross_functional/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import pytest


from ocs_ci.utility import version
from concurrent.futures import ThreadPoolExecutor
from threading import Event
from ocs_ci.framework import config
Expand Down Expand Up @@ -141,17 +142,21 @@ def factory(
kind="secret", namespace=config.ENV_DATA["cluster_namespace"]
)
secrets = [
"noobaa-root-master-key",
"noobaa-admin",
"noobaa-operator",
"noobaa-db",
"noobaa-server",
"noobaa-endpoints",
]
if is_kms_enabled():
secrets = [
secret for secret in secrets if secret != "noobaa-root-master-key"
]
if (
PrasadDesala marked this conversation as resolved.
Show resolved Hide resolved
version.get_semantic_ocs_version_from_config() >= version.VERSION_4_14
and not is_kms_enabled()
):
secrets.extend(
["noobaa-root-master-key-backend", "noobaa-root-master-key-volume"]
)
elif not is_kms_enabled():
secrets.append("noobaa-root-master-key")
secrets_yaml = [
ocp_secret_obj.get(resource_name=f"{secret}") for secret in secrets
]
Expand Down
Loading