Skip to content

Commit 44d5eff

Browse files
committed
fix: rename common functions
1 parent acf7d4f commit 44d5eff

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

charts/common/templates/_images.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{/* vim: set filetype=mustache: */}}
22
{{/*
33
Return the proper image name
4-
{{ include "common.images.image" ( dict "imageRoot" .Values.path.to.the.image "global" .Values.global ) }}
4+
{{ include "hf.common.images.image" ( dict "imageRoot" .Values.path.to.the.image "global" .Values.global ) }}
55
*/}}
66
{{- define "hf.common.images.image" -}}
77
{{- $useGlobalRegistry := or (not (hasKey .imageRoot "useGlobalRegistry")) .imageRoot.useGlobalRegistry -}}
@@ -27,21 +27,21 @@ Return the proper image name
2727

2828
{{/*
2929
Return the proper Docker Image Registry Secret Names evaluating values as templates
30-
{{ include "common.images.renderPullSecrets" ( dict "images" (list .Values.path.to.the.image1, .Values.path.to.the.image2) "context" $) }}
30+
{{ include "hf.common.images.renderPullSecrets" ( dict "images" (list .Values.path.to.the.image1, .Values.path.to.the.image2) "context" $) }}
3131
*/}}
3232
{{- define "hf.common.images.renderPullSecrets" -}}
3333
{{- $pullSecrets := list }}
3434
{{- $context := .context }}
3535

3636
{{- if $context.Values.global.huggingface }}
3737
{{- range $context.Values.global.huggingface.imagePullSecrets -}}
38-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" $context)) -}}
38+
{{- $pullSecrets = append $pullSecrets (include "hf.common.tplvalues.render" (dict "value" . "context" $context)) -}}
3939
{{- end -}}
4040
{{- end -}}
4141

4242
{{- range .images -}}
4343
{{- range .pullSecrets -}}
44-
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" $context)) -}}
44+
{{- $pullSecrets = append $pullSecrets (include "hf.common.tplvalues.render" (dict "value" . "context" $context)) -}}
4545
{{- end -}}
4646
{{- end -}}
4747

charts/common/templates/_ingress.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Return true if cert-manager required annotations for TLS signed
55
certificates are set in the Ingress annotations
66
Ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
77
Usage:
8-
{{ include "common.ingress.certManagerRequest" ( dict "annotations" .Values.path.to.the.ingress.annotations ) }}
8+
{{ include "hf.common.ingress.certManagerRequest" ( dict "annotations" .Values.path.to.the.ingress.annotations ) }}
99
*/}}
1010
{{- define "hf.common.ingress.certManagerRequest" -}}
1111
{{ if or (hasKey .annotations "cert-manager.io/cluster-issuer") (hasKey .annotations "cert-manager.io/issuer") (hasKey .annotations "kubernetes.io/tls-acme") }}

charts/common/templates/_tplvalues.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
{{/*
33
Renders a value that contains template.
44
Usage:
5-
{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
5+
{{ include "hf.common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
66
*/}}
7-
{{- define "common.tplvalues.render" -}}
7+
{{- define "hf.common.tplvalues.render" -}}
88
{{- if typeIs "string" .value }}
99
{{- tpl .value .context }}
1010
{{- else }}

0 commit comments

Comments
 (0)