mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-02-08 05:33:33 +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
44 lines
1.2 KiB
Smarty
44 lines
1.2 KiB
Smarty
{{/* vim: set filetype=mustache: */}}
|
|
{{/*
|
|
Return the proper image name
|
|
{{ include "common.images.image" ( dict "imageRoot" .Values.path.to.the.image "global" $) }}
|
|
*/}}
|
|
{{- define "common.images.image" -}}
|
|
{{- $registryName := .imageRoot.registry -}}
|
|
{{- $repositoryName := .imageRoot.repository -}}
|
|
{{- $tag := .imageRoot.tag | toString -}}
|
|
{{- if .global }}
|
|
{{- if .global.imageRegistry }}
|
|
{{- $registryName = .global.imageRegistry -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the proper Docker Image Registry Secret Names
|
|
{{ include "common.images.pullSecrets" ( dict "images" (list .Values.path.to.the.image1, .Values.path.to.the.image2) "global" .Values.global) }}
|
|
*/}}
|
|
{{- define "common.images.pullSecrets" -}}
|
|
{{- $pullSecrets := list }}
|
|
|
|
{{- if .global }}
|
|
{{- range .global.imagePullSecrets -}}
|
|
{{- $pullSecrets = append $pullSecrets . -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- range .images -}}
|
|
{{- range .pullSecrets -}}
|
|
{{- $pullSecrets = append $pullSecrets . -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- if (not (empty $pullSecrets)) }}
|
|
imagePullSecrets:
|
|
{{- range $pullSecrets }}
|
|
- name: {{ . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}}
|