Skip to content
Merged
Show file tree
Hide file tree
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
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"
}
Loading