Skip to content

Commit

Permalink
implement helm best practices. add recommended standard helm labels.
Browse files Browse the repository at this point in the history
keep crds in templates/ directory for helm2 compatibility
  • Loading branch information
snooyen committed Aug 13, 2020
1 parent ac02684 commit c2762fc
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ Standard labels for helm resources
*/}}
{{- define "sscd.labels" -}}
labels:
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
revision: "{{ .Release.Revision }}"
chart: "{{ .Chart.Name }}"
chartVersion: "{{ .Chart.Version }}"
app.kubernetes.io/instance: "{{ .Release.Name }}"
app.kubernetes.io/managed-by: "{{ .Release.Service }}"
app.kubernetes.io/name: "{{ template "sscd.name" . }}"
app.kubernetes.io/version: "{{ .Chart.AppVersion }}"
app: {{ template "sscd.name" . }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
{{- end -}}

0 comments on commit c2762fc

Please sign in to comment.