From 3fa004ef4fa238fdf99897f1a4d8b7cb30701e26 Mon Sep 17 00:00:00 2001 From: Niall Thomson Date: Mon, 25 Nov 2024 14:24:12 -0700 Subject: [PATCH] fix: Use generated name for Dynamo and Redis service (#679) * Rename for consistency * Remove old file * Fix checkout redis --- .../charts/carts/templates/{configmap.yml => configmap.yaml} | 2 +- .../charts/checkout/templates/{configmap.yml => configmap.yaml} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename deploy/kubernetes/charts/carts/templates/{configmap.yml => configmap.yaml} (86%) rename deploy/kubernetes/charts/checkout/templates/{configmap.yml => configmap.yaml} (79%) diff --git a/deploy/kubernetes/charts/carts/templates/configmap.yml b/deploy/kubernetes/charts/carts/templates/configmap.yaml similarity index 86% rename from deploy/kubernetes/charts/carts/templates/configmap.yml rename to deploy/kubernetes/charts/carts/templates/configmap.yaml index 1cdd4bf0f..b06fee105 100644 --- a/deploy/kubernetes/charts/carts/templates/configmap.yml +++ b/deploy/kubernetes/charts/carts/templates/configmap.yaml @@ -12,7 +12,7 @@ data: CARTS_DYNAMODB_CREATETABLE: "true" AWS_ACCESS_KEY_ID: key AWS_SECRET_ACCESS_KEY: secret - CARTS_DYNAMODB_ENDPOINT: http://carts-dynamodb:8000 + CARTS_DYNAMODB_ENDPOINT: http://{{ include "carts.dynamodb.fullname" . }}:8000 {{- end }} {{- end }} {{- end }} diff --git a/deploy/kubernetes/charts/checkout/templates/configmap.yml b/deploy/kubernetes/charts/checkout/templates/configmap.yaml similarity index 79% rename from deploy/kubernetes/charts/checkout/templates/configmap.yml rename to deploy/kubernetes/charts/checkout/templates/configmap.yaml index 1c1c651fa..b19e0bd7c 100644 --- a/deploy/kubernetes/charts/checkout/templates/configmap.yml +++ b/deploy/kubernetes/charts/checkout/templates/configmap.yaml @@ -5,7 +5,7 @@ metadata: name: {{ include "checkout.configMapName" . }} data: {{- if .Values.redis.create }} - REDIS_URL: redis://checkout-redis:6379 + REDIS_URL: redis://{{ include "checkout.redis.fullname" . }}:{{ .Values.redis.service.port }} {{- else }} REDIS_URL: redis://{{ .Values.redis.address }}:{{ .Values.redis.port }} {{- end }}