We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No possibilities to define labels and annotation for resources in chart.
Best practice for helm chart development consists to add following metadata definitions on each template :
labels: app.kubernetes.io/name: {{ template "dex.name" . }} helm.sh/chart: {{ template "dex.chart" . }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} {{- if .Values.commonLabels }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} annotations: {{- if .Values.commonAnnotations }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }}
and following block in templates :
{{/* vim: set filetype=mustache: */}} {{/* Renders a value that contains template. Usage: {{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }} */}} {{- define "common.tplvalues.render" -}} {{- if typeIs "string" .value }} {{- tpl .value .context }} {{- else }} {{- tpl (.value | toYaml) .context }} {{- end }} {{- end -}}
(or integrate common helm chart from bitnami as dependency: https://artifacthub.io/packages/helm/bitnami/common)
No response
The text was updated successfully, but these errors were encountered:
Pull request #67
Sorry, something went wrong.
No branches or pull requests
Preflight Checklist
Problem Description
No possibilities to define labels and annotation for resources in chart.
Proposed Solution
Best practice for helm chart development consists to add following metadata definitions on each template :
and following block in templates :
(or integrate common helm chart from bitnami as dependency: https://artifacthub.io/packages/helm/bitnami/common)
Alternatives Considered
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: