diff --git a/charts/common/templates/_images.tpl b/charts/common/templates/_images.tpl index e1cc411..d3cd372 100644 --- a/charts/common/templates/_images.tpl +++ b/charts/common/templates/_images.tpl @@ -1,7 +1,7 @@ {{/* vim: set filetype=mustache: */}} {{/* Return the proper image name -{{ include "common.images.image" ( dict "imageRoot" .Values.path.to.the.image "global" .Values.global ) }} +{{ include "hf.common.images.image" ( dict "imageRoot" .Values.path.to.the.image "global" .Values.global ) }} */}} {{- define "hf.common.images.image" -}} {{- $useGlobalRegistry := or (not (hasKey .imageRoot "useGlobalRegistry")) .imageRoot.useGlobalRegistry -}} @@ -27,7 +27,7 @@ Return the proper image name {{/* Return the proper Docker Image Registry Secret Names evaluating values as templates -{{ include "common.images.renderPullSecrets" ( dict "images" (list .Values.path.to.the.image1, .Values.path.to.the.image2) "context" $) }} +{{ include "hf.common.images.renderPullSecrets" ( dict "images" (list .Values.path.to.the.image1, .Values.path.to.the.image2) "context" $) }} */}} {{- define "hf.common.images.renderPullSecrets" -}} {{- $pullSecrets := list }} @@ -35,13 +35,13 @@ Return the proper Docker Image Registry Secret Names evaluating values as templa {{- if $context.Values.global.huggingface }} {{- range $context.Values.global.huggingface.imagePullSecrets -}} - {{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" $context)) -}} + {{- $pullSecrets = append $pullSecrets (include "hf.common.tplvalues.render" (dict "value" . "context" $context)) -}} {{- end -}} {{- end -}} {{- range .images -}} {{- range .pullSecrets -}} - {{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" $context)) -}} + {{- $pullSecrets = append $pullSecrets (include "hf.common.tplvalues.render" (dict "value" . "context" $context)) -}} {{- end -}} {{- end -}} diff --git a/charts/common/templates/_ingress.tpl b/charts/common/templates/_ingress.tpl index eb46760..7438f72 100644 --- a/charts/common/templates/_ingress.tpl +++ b/charts/common/templates/_ingress.tpl @@ -5,7 +5,7 @@ Return true if cert-manager required annotations for TLS signed certificates are set in the Ingress annotations Ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations Usage: -{{ include "common.ingress.certManagerRequest" ( dict "annotations" .Values.path.to.the.ingress.annotations ) }} +{{ include "hf.common.ingress.certManagerRequest" ( dict "annotations" .Values.path.to.the.ingress.annotations ) }} */}} {{- define "hf.common.ingress.certManagerRequest" -}} {{ if or (hasKey .annotations "cert-manager.io/cluster-issuer") (hasKey .annotations "cert-manager.io/issuer") (hasKey .annotations "kubernetes.io/tls-acme") }} diff --git a/charts/common/templates/_tplvalues.tpl b/charts/common/templates/_tplvalues.tpl index 5d3d603..3b1e500 100644 --- a/charts/common/templates/_tplvalues.tpl +++ b/charts/common/templates/_tplvalues.tpl @@ -2,9 +2,9 @@ {{/* Renders a value that contains template. Usage: -{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }} +{{ include "hf.common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }} */}} -{{- define "common.tplvalues.render" -}} +{{- define "hf.common.tplvalues.render" -}} {{- if typeIs "string" .value }} {{- tpl .value .context }} {{- else }}