helm values reference other values

https://helm.sh/docs/chart_template_guide/yaml_techniques/#yaml-anchors

https://helm.sh/zh/docs/chart_template_guide/yaml_techniques/#yaml-%E9%94%9A%E7%82%B9

 

YAML also provides a handy feature called anchors, which let you easily duplicate
content across your document. Both of these keys will have the same value:

default: &default_title This Post Has No Title
title: *default_title
 

maps to:

18:40 $ helm install --dry-run --debug someapp/ |grep -i this
default: This Post Has No Title
title: This Post Has No Title
 

Doesn't allow for concatenation or more advanced combinations, but in some cases even this limited functionality may help a lot.

posted @ 2024-08-21 20:31  牧之丨  阅读(7)  评论(0编辑  收藏  举报