Skip to content

Commit

Permalink
Create a common redis in dev (#1518)
Browse files Browse the repository at this point in the history
Co-authored-by: Automatic Update <[email protected]>
  • Loading branch information
sveinpj and Automatic Update authored Dec 4, 2024
1 parent e8881b5 commit 3f0691b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion scripts/redis/update_redis_cache_for_console.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ verify_cluster_access
#######################################################################################

function updateRedisCacheConfiguration() {
REDIS_CACHE_NAME="${CLUSTER_NAME}-${RADIX_WEB_CONSOLE_ENV}"
if [[ $RADIX_ZONE == "dev" ]]; then
REDIS_CACHE_NAME="redis-${RADIX_ZONE}-${RADIX_WEB_CONSOLE_ENV}"
else
REDIS_CACHE_NAME="${CLUSTER_NAME}-${RADIX_WEB_CONSOLE_ENV}"
fi
REDIS_CACHE_INSTANCE=$(az redis show --resource-group "${AZ_RESOURCE_GROUP_CLUSTERS}" --name "${REDIS_CACHE_NAME}" 2>/dev/null)

WEB_CONSOLE_NAMESPACE="radix-web-console-${RADIX_WEB_CONSOLE_ENV}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
module "rediscache" {
source = "../../../modules/redis_cache"
for_each = module.config.cluster
name = "redis-${module.config.environment}"
rg_name = module.config.cluster_resource_group
name = each.key
vnet_resource_group = "cluster-vnet-hub-${module.config.environment}"
sku_name = "Basic"
}

0 comments on commit 3f0691b

Please sign in to comment.