_helpers.tpl 941 B

123456789101112131415161718192021222324252627282930313233343536
  1. {{/* vim: set filetype=mustache: */}}
  2. {{/*
  3. Expand the name of the chart.
  4. */}}
  5. {{- define "kibana.name" -}}
  6. {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
  7. {{- end -}}
  8. {{/*
  9. Create a default fully qualified app name.
  10. We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
  11. */}}
  12. {{- define "kibana.fullname" -}}
  13. {{- if .Values.fullnameOverride -}}
  14. {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
  15. {{- else -}}
  16. {{- $name := default .Release.Name .Values.nameOverride -}}
  17. {{- printf "%s-%s" $name .Chart.Name | trunc 63 | trimSuffix "-" -}}
  18. {{- end -}}
  19. {{- end -}}
  20. {{/*
  21. Common labels
  22. */}}
  23. {{- define "kibana.labels" -}}
  24. app: {{ .Chart.Name }}
  25. release: {{ .Release.Name | quote }}
  26. heritage: {{ .Release.Service }}
  27. {{- if .Values.labels }}
  28. {{ toYaml .Values.labels }}
  29. {{- end }}
  30. {{- end -}}
  31. {{- define "kibana.home_dir" -}}
  32. /usr/share/kibana
  33. {{- end -}}