mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-02-12 07:26:14 +00:00
* Changed: avoid latest image
* Changed: version bump
* Fixed: pull policy
* Removed: specific ci for glue since now it's on by default
* Fixed: don't refresh dependencies
* Changed: testing chart action version update
* Fixed: action
* Changed: dependency updates required
* Fixed: lint and install
* Revert "Changed: dependency updates required"
This reverts commit 34ee22d7d0
.
* Changed: use copy of dep charts because ththey may become unavailable
* Changed: updated readme
24 lines
628 B
Smarty
24 lines
628 B
Smarty
{{/* vim: set filetype=mustache: */}}
|
|
{{/*
|
|
Return the proper Storage Class
|
|
{{ include "common.storage.class" ( dict "persistence" .Values.path.to.the.persistence "global" $) }}
|
|
*/}}
|
|
{{- define "common.storage.class" -}}
|
|
|
|
{{- $storageClass := .persistence.storageClass -}}
|
|
{{- if .global -}}
|
|
{{- if .global.storageClass -}}
|
|
{{- $storageClass = .global.storageClass -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- if $storageClass -}}
|
|
{{- if (eq "-" $storageClass) -}}
|
|
{{- printf "storageClassName: \"\"" -}}
|
|
{{- else }}
|
|
{{- printf "storageClassName: %s" $storageClass -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|