Adding post on helm named template navigation

Signed-off-by: Matt Farina <matt@mattfarina.com>
This commit is contained in:
Matt Farina 2022-08-08 15:35:37 -04:00
parent cfb1578af4
commit 1cf5997505
2 changed files with 18 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

View File

@ -0,0 +1,18 @@
---
title: "Exploring Helm Named Templates"
date: 2022-08-09T00:00:00-05:00
author: "Matt Farina"
authorLink: "https://mattfarina.com"
slug: "helm-named-templates"
---
Helm provides the ability to create [named templates](https://helm.sh/docs/chart_template_guide/named_templates/) in charts. You can use a named template one or more times and even pass argumnets to them. Named templates are a wonderful way to write reusable templates for your charts and the building block for [library charts](https://helm.sh/docs/topics/library_charts/#helm).
Artifact Hub now allows you to navigate the named templates from the template explorer.
![](browser.png)
<!--more-->
When you mouse over a named template a pop-up will tell you the line and file this template is named in. Clicking the "Go to definition" link will take you right to that file and line where you can view this template. If you want to go back to your previous spot you can use your browsers back button to navigate back there.
If you want to try using this feature you can start with [the Artifact Hub chart](https://artifacthub.io/packages/helm/artifact-hub/artifact-hub).