So below is the code that I am using. I want to use the productName to get the values from productNameReplicas
replicas: {{ index .Values.productNameReplicas .Values.productName | default 1 }}
Here is my values file
productNameReplicas:
carAi: 3
langAI: 3
The problem is if the productName is not in productNameReplicas, it doesnt just use the default value and give me the error:
error calling index: index of untyped nil
Any ideas to get something like this working?