Go Templates are a simple and powerful templating engine in the Go programming language. They are designed for creating text-based output (like YAML, HTML, etc.) by embedding Go logic inside placeholders
. In Helm, Go Templates are used to generate Kubernetes YAML files dynamically based on input values and template logic.
In Helm, templates are defined using the following structure:
{{ ... }}
{{ .SomeVariable }}
{{ if .Condition }} ... {{ else }} ... {{ end }}
{{ range .List }} ... {{ end }}