Skip to content

Commit

Permalink
change in secrets
Browse files Browse the repository at this point in the history
Signed-off-by: Vishakha Kathole <[email protected]>
  • Loading branch information
vkathole committed Jan 18, 2024
1 parent 65e7e8a commit 37db81f
Showing 1 changed file with 10 additions and 5 deletions.
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 (
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

0 comments on commit 37db81f

Please sign in to comment.