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 10, 2024
1 parent c2bd37e commit 2988a53
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 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
3 changes: 2 additions & 1 deletion tests/cross_functional/kcs/test_noobaa_rebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def test_noobaa_rebuild(self, bucket_factory):
)
else:
dep_ocp.exec_oc_cmd(
"delete secrets noobaa-admin noobaa-endpoints noobaa-operator noobaa-server noobaa-root-master-key"
"delete secrets noobaa-admin noobaa-endpoints noobaa-operator noobaa-server "
"noobaa-root-master-key-backend noobaa-root-master-key-volume"
)

# Scale back noobaa-operator deployment
Expand Down

0 comments on commit 2988a53

Please sign in to comment.