0PricingLogin
Helm Academy · Lesson

Looping Files with range Over .Files.Glob

Generating ConfigMaps from a directory of files.

Bundling Files in a Chart

Charts can ship extra files alongside templates. The .Files object gives your templates read access to those bundled files.

Matching Files with Glob

The .Files.Glob method returns the files whose paths match a pattern, like every file under a config directory.

{{ $files := .Files.Glob "configs/*.conf" }}

All lessons in this course

  1. Deep Merge with mergeOverwrite and dict
  2. tpl: Rendering Strings from Values
  3. Looping Files with range Over .Files.Glob
  4. fail and Custom Validation Guards
← Back to Helm Academy