File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{ {/* vim: set filetype= mustache: */} }
22{ {/*
33Return 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{ {/*
2929Return 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
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Return true if cert-manager required annotations for TLS signed
55certificates are set in the Ingress annotations
66Ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
77Usage:
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" ) } }
Original file line number Diff line number Diff line change 22{ {/*
33Renders a value that contains template.
44Usage:
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 } }
You can’t perform that action at this time.
0 commit comments