Skip to content

Commit

Permalink
fix tox and update encryption if storagecluster exists
Browse files Browse the repository at this point in the history
Signed-off-by: fbalak <[email protected]>
  • Loading branch information
fbalak committed Jun 12, 2024
1 parent 4fd3be1 commit f5d393c
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions ocs_ci/deployment/provider_client/storage_client_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,15 @@ def provider_and_native_client_installation(
constants.OCS_STORAGE_CLUSTER_YAML
)
if config.ENV_DATA.get("encryption_at_rest"):
logger.info("Enabling encryption at REST!")
cluster_data["spec"]["encryption"] = {
log.info("Enabling encryption at REST!")
storage_cluster_data["spec"]["encryption"] = {
"enable": True,
}
cluster_data["spec"]["encryption"] = {
storage_cluster_data["spec"]["encryption"] = {
"clusterWide": True,
}
if config.DEPLOYMENT.get("kms_deployment"):
cluster_data["spec"]["encryption"]["kms"] = {
storage_cluster_data["spec"]["encryption"]["kms"] = {
"enable": True,
}
templating.dump_data_to_temp_yaml(
Expand All @@ -217,6 +217,18 @@ def provider_and_native_client_installation(
storage_cluster_data = templating.load_yaml(
constants.OCS_STORAGE_CLUSTER_UPDATED_YAML
)
if config.ENV_DATA.get("encryption_at_rest"):
log.info("Enabling encryption at REST!")
storage_cluster_data["spec"]["encryption"] = {
"enable": True,
}
storage_cluster_data["spec"]["encryption"] = {
"clusterWide": True,
}
if config.DEPLOYMENT.get("kms_deployment"):
storage_cluster_data["spec"]["encryption"]["kms"] = {
"enable": True,
}
templating.dump_data_to_temp_yaml(
storage_cluster_data, constants.OCS_STORAGE_CLUSTER_UPDATED_YAML
)
Expand Down

0 comments on commit f5d393c

Please sign in to comment.