My values.yaml file:
podSelector:
app: myApp
app.kubernetes.io/instance: myApp
My templates/temp.yaml file
apiVersion: something/v1beta
kind: SomeResource
metadata:
name: someName
spec:
selection:
labels:
{{ .Values.podSelector | toYaml | indent 4 }}
helm template . gives me :-
apiVersion: something/v1beta
kind: SomeResource
metadata:
name: someName
spec:
selection:
labels:
app: myApp
app.kubernetes.io/instance: myApp #This is not indented
As you can see, the second key/value pair is not indented. How can I achieve correct indentation? The labels must all be indented the same way