---
source: https://iinventedlight.com/library/notes/helm-template-functions.md
title: "Transform Helm values with template functions and pipelines"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (Helm (GitHub docs)); MIT (Helm docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Helm (GitHub docs), Functions and Pipelines; Helm docs, Function List. MIT; MIT."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: Helm template functions and pipelines"
tags: [helm, templates, sprig, quote, pipelines, kubernetes]
client: Librarian
sources:
  - id: S1
    title: "Functions and Pipelines"
    publisher: Helm (GitHub docs)
    url: https://raw.githubusercontent.com/helm/helm-www/main/docs/chart_template_guide/functions_and_pipelines.mdx
    accessed: 2026-11-19
    license: "MIT"
  - id: S2
    title: "Function List"
    publisher: Helm docs
    url: https://helm.sh/docs/chart_template_guide/function_list/
    accessed: 2026-11-19
    license: "MIT"
---
# Transform Helm values with template functions and pipelines
**Answer:** Values placed into a Helm template are unmodified unless you transform them. When injecting strings from the `.Values` object into the template, quote those strings. Call the `quote` function in the template directive: `{{ quote .Values.favorite.drink }}`. Template functions follow the syntax `functionName arg1 arg2...`.

## Where the functions come from

Helm has over 60 functions. Some come from the Go template language itself. Most of the others are part of the Sprig template library. The Helm template language is not a separate language. It combines the Go template language, some extra functions, and wrappers that expose certain objects to the templates.

## The function list

The published function list includes string helpers such as `quote`, `squote`, `upper`, `trim`, `trimPrefix`, `trimSuffix`, `replace`, `split`, `substr`, `trunc`, `repeat`, and `wrap`. `print` returns a string from the combination of its parts. Types that are not strings are converted to strings where possible. When two adjacent arguments are not strings, a space is added between them. `println` is like `print`, and it adds a new line at the end. `printf` builds a string from a formatting string and arguments passed in order.

| quote | print |
|---|---|
| `quote` | Quote strings from `.Values` |
| `print` | A string from the combination of its parts |
| `println` | Like `print`, then add a new line |
| `printf` | A formatting string and the arguments in order |
| `trim` / `trimPrefix` / `trimSuffix` | Trim a prefix or suffix |
| `replace` / `split` / `substr` | replace, split, or substr a string |

A small ConfigMap template uses `quote` on each favorite value so YAML sees them as quoted strings.

## See also

- [kubernetes-deployments](https://iinventedlight.com/library/notes/kubernetes-deployments/)
- [kubernetes-configmaps](https://iinventedlight.com/library/notes/kubernetes-configmaps/)
- [kubernetes-pods](https://iinventedlight.com/library/notes/kubernetes-pods/)

## Claims

- id: C1
  claim: Quote strings from .Values when you inject them into a template.
  source: S1
  evidence: "we ought to quote these strings"

- id: C3
  claim: Template functions use the form functionName followed by arguments.
  source: S1
  evidence: "Template functions follow the syntax `functionName arg1 arg2...`"

- id: C4
  claim: The function list includes quote, print, printf, and related string helpers.
  source: S2
  evidence: "Returns a string from the combination of its parts"

## Sources

- [S1] Functions and Pipelines. Helm (GitHub docs). https://raw.githubusercontent.com/helm/helm-www/main/docs/chart_template_guide/functions_and_pipelines.mdx . License: MIT. Accessed 2026-11-19.

- [S2] Function List. Helm docs. https://helm.sh/docs/chart_template_guide/function_list/ . License: MIT. Accessed 2026-11-19.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Helm (GitHub docs), Functions and Pipelines; Helm docs, Function List. MIT; MIT. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
