I am new to the whole Kubernetes-Helm thing, please bear with me and I'll try to give as much clarity to my question as possible
So I have this ConfigMap.yaml file that does this:
apiVersion: v1
kind: ConfigMap
metadata:
name: envread-settings
namespace: {{ .Values.environment.namespace }}
data:
appsettings.environment.json: |-
{
"featureBranch": {{ .Values.component.vars.featureId | quote }},
"BFFServiceUrl": {{ .Values.environment.BFFServiceUrl | quote }}
}
---
Where the Values are:
- .Values.component.vars.featureId = 123
- .Values.environment.BFFServiceUrl = api.dev.integrations/bff-service
This creates an appsettings.environment.json file in a volume path I specified. I need to dynamically create this json file because I need to insert the above variables in there (can't use environment variables sadly for my app).
When I ssh into the terminal and vim everything looks dandy on that file i.e:
{
"featureBranch": "123",
"BFFServiceUrl": "api.dev.integration/bff-service"
}
But when I curl this file I get:
{
"featureBranch": "123",
and the same can be said when I browse directly to this file (I am running an Angular SPA app using ASP.NET Core 3.1).
Is there something horribly wrong I am doing in the yaml file?
Edit
The curl command that I am running is:
curl https://api.integrations.portal/assets/appsettings.json
.
There is a NGINX Ingress running in between the request and response.