Skip to content

error calling include: template: no template "temp.chart" associated with template "gotpl" #38

@xxfroxx

Description

@xxfroxx

Hi,

I am following up lesson 73 and I get the error below

Error: render error in "helm-chart-creation/templates/ghost-deployment.yaml": template: helm-chart-creation/templates/ghost-deployment.yaml:9:14: executing "helm-chart-creation/templates/ghost-deployment.yaml" at <include "temp.chart" .>: error calling include: template: no template "temp.chart" associated with template "gotpl"

I thought that I need to move the .tpl file in the same folder as the Chart.yaml, actually I did that, but it didn't work, still getting that error.

Could it be something wrong with this piece of code from the .tpl file?

Create chart name and version as used by the chart label.
*/}}
{{- define "temp.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions