mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-02-08 13:48:19 +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
58 lines
2.0 KiB
Smarty
58 lines
2.0 KiB
Smarty
{{/* vim: set filetype=mustache: */}}
|
|
{{/*
|
|
Generate secret name.
|
|
|
|
Usage:
|
|
{{ include "common.secrets.name" (dict "existingSecret" .Values.path.to.the.existingSecret "defaultNameSuffix" "mySuffix" "context" $) }}
|
|
|
|
Params:
|
|
- existingSecret - ExistingSecret/String - Optional. The path to the existing secrets in the values.yaml given by the user
|
|
to be used instead of the default one. Allows for it to be of type String (just the secret name) for backwards compatibility.
|
|
+info: https://github.com/bitnami/charts/tree/master/bitnami/common#existingsecret
|
|
- defaultNameSuffix - String - Optional. It is used only if we have several secrets in the same deployment.
|
|
- context - Dict - Required. The context for the template evaluation.
|
|
*/}}
|
|
{{- define "common.secrets.name" -}}
|
|
{{- $name := (include "common.names.fullname" .context) -}}
|
|
|
|
{{- if .defaultNameSuffix -}}
|
|
{{- $name = printf "%s-%s" $name .defaultNameSuffix | trunc 63 | trimSuffix "-" -}}
|
|
{{- end -}}
|
|
|
|
{{- with .existingSecret -}}
|
|
{{- if not (typeIs "string" .) -}}
|
|
{{- $name = .name -}}
|
|
{{- else -}}
|
|
{{- $name = . -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- printf "%s" $name -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Generate secret key.
|
|
|
|
Usage:
|
|
{{ include "common.secrets.key" (dict "existingSecret" .Values.path.to.the.existingSecret "key" "keyName") }}
|
|
|
|
Params:
|
|
- existingSecret - ExistingSecret/String - Optional. The path to the existing secrets in the values.yaml given by the user
|
|
to be used instead of the default one. Allows for it to be of type String (just the secret name) for backwards compatibility.
|
|
+info: https://github.com/bitnami/charts/tree/master/bitnami/common#existingsecret
|
|
- key - String - Required. Name of the key in the secret.
|
|
*/}}
|
|
{{- define "common.secrets.key" -}}
|
|
{{- $key := .key -}}
|
|
|
|
{{- if .existingSecret -}}
|
|
{{- if not (typeIs "string" .existingSecret) -}}
|
|
{{- if .existingSecret.keyMapping -}}
|
|
{{- $key = index .existingSecret.keyMapping $.key -}}
|
|
{{- end -}}
|
|
{{- end }}
|
|
{{- end -}}
|
|
|
|
{{- printf "%s" $key -}}
|
|
{{- end -}}
|