As per jhole's comment, the toYaml
should infact be in a template file.
What I seem to be able to do is the following:
containerBuilder:
probes:
livenessProbe:
failureThreshold: 5
tcpSocket:
port: 2376
periodSeconds: 10
timeoutSeconds: 5
spec:
livenessProbe:
"{{- toYaml .Values.containerBuilder.probes.livenessProbe | nindent 6 }}"
template.yaml
Container:
{{ .Value.containerBuilder.spec }}
In order to render the template as I need.