Skip to content

ExistingPath does not work #1737

Open
Open
@tehlers320

Description

@tehlers320

I have a chart wrapped in a chart wrapped in a chart.... (i know fun right).... anyways

if i put

otelcol:
  opentelemetry-collector:
    configMap:
      existingPath: "templates/configMap.yaml" # this is set just to highlight the problem

I get

entelemetry-collector.configTemplateChecksumAnnotation" at <include (print $.Template.BasePath "/" .Values.configMap.existingPath) .>: error calling include: template: no template "otelcol/charts/otelcol/charts/opentelemetry-collector/templates/templates/configMap.yaml" associated with template "gotpl"

I believe the function here may be a problem because of where BasePath puts you:

checksum/config: {{ include (print $.Template.BasePath "/" .Values.rcp-otelcol.opentelemetry-collector.configMap.existingPath) . | sha256sum }}

helm docs say

Template.BasePath: The namespaced path to the templates directory of the current chart (e.g. mychart/templates).

i dont have any work-arounds right now.

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