Files
deprecated-helm-charts/stable/dask/templates/_helpers.tpl
T
Matthew Rocklin 3ac741bdfd [stable/dask] Add updated Dask chart (#2914)
* Add Dask Chart

This supercedes the previous dask-distributed chart, which will be
deprecated.

This also uses an accurate docker image for the Jupyter server,
and pins docker images generally.

* Comment out resource limits

* Set chart version to 1.0.0, appVersion to 0.17.0

* Update README and chart information

* specify nthreads and memory-limit explicitly in values.yaml

* update notes

* avoid setting --nthreads and --memory-limit if no resource limits

* expand truncation to 63 characters, and trim "."

* bump app version number

* remove change to dask-distributed chart

* remove NOTES.txt

* use explicit repository and image tags

* respond to feedback

* remove specification of containerPorts

* update README

* resolve linting issues in values.yaml

* Clarify extra packages in README

* replace pip/conda/apt packages with generic env solution

* Add option to turn off Jupyter

Also, combine all jupyter documents into one file

* add missing {{ end }}

* split dask-jupyter to multiple files

* Fix Yaml issues

* Fix values.yaml

* Update README with instructions for installing custom packages

* Remove configurable components
2018-03-08 09:23:56 -08:00

33 lines
1.0 KiB
Smarty

{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "dask.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "dask.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "dask.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}