_helpers.tpl 832 B

123456789101112131415161718192021222324252627
  1. {{/* vim: set filetype=mustache: */}}
  2. {{/*
  3. Expand the name of the chart.
  4. */}}
  5. {{- define "cello-master.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 "cello-master.fullname" -}}
  13. {{- $name := default .Chart.Name .Values.nameOverride -}}
  14. {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
  15. {{- end -}}
  16. {{/*
  17. Create chart name and version as used by the chart label.
  18. */}}
  19. {{- define "nfs-provisioner.provisionerName" -}}
  20. {{- if .Values.nfs.storageClass -}}
  21. {{- printf .Values.nfs.storageClass -}}
  22. {{- else -}}
  23. cluster.local/{{ template "nfs-provisioner.fullname" . -}}
  24. {{- end -}}
  25. {{- end -}}