You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{- if eq ( index .Annotations "chart.kubee/status") "alpha" }}> [!WARNING]> This chart is in the {{ template "kubee-chart-status-label" "alpha status" }} and is not fit to be installed.{{-end }}
Expected Behavior
Should work
Current Behavior
Does not work
Possible Solution
Collect the annotations in the .Annotations field
Uses .Files.Get to parse it again.
{{ $chartYaml := (.Files.Get "Chart.yaml") | fromYaml }}{{- if eq (index $chartYaml.annotations "chart.kubee/status") "alpha" }}> [!WARNING]> This chart is in the {{ template "kubee-chart-status-label" "alpha status" }} and is not fit to be installed.{{- end }}
This solution works but I was expecting the whole Chart.yaml to be available, the Helm ways. ie .Chart.Name, .Values.
The text was updated successfully, but these errors were encountered:
I have searched intensively how I could use the annotations field of Chart.yaml and I could find anything.
This issue is more a sort of request doubled with a documentation over a solution.
Case
We set a metadata in the annotations field of Chart.yaml
and we want to create custom template such as:
Expected Behavior
Should work
Current Behavior
Does not work
Possible Solution
.Annotations
field.Files.Get
to parse it again.This solution works but I was expecting the whole
Chart.yaml
to be available, the Helm ways. ie.Chart.Name
,.Values.
The text was updated successfully, but these errors were encountered: