首页 > 解决方案 > Helm, add checksum annotation from values

问题描述

A third-party chart which I use a dependency allows extra annotations to be passed in from values file. However the annotation I want to pass in is checksum/config

values.yaml

mychart:
    annotations:
       checksum/config: "{{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}"

But whatever passed from the values files is rendered as string. Is there a working way to pass in checsum/config from values.yaml?

标签: kubernetes-helmhelm3

解决方案


推荐阅读