Skip to content

Evaluating {{ .Namespace }} in a gotmpl file no longer works since v0.126.0 #1464

Closed

Description

@mattymo

I have a line in one of my values files for a release like this:

  service:
    local:
      annotations:
        metallb.universe.tf/allow-shared-ip: {{ .Namespace }}

It gives this error:

ailed to render values files "myapp.yaml.gotmpl": failed to render [myapp.yaml.gotmpl], because of template: stringTemplate:18:48: executing "stringTemplate" at <.Namespace>: can't evaluate field Namespace in type state.releaseTemplateData

I checked out v0.125.0 and v0.125.9 and they don't have this issue. It must be something that changed in v0.126.0. It is also present in v0.128.0.

Maybe #1415 is the source of the regression?

Activity

  1. mattymo commented on Sep 10, 2020

    @mattymo
    Author

    @mumoshu Can you take a look at this?

  2. mumoshu commented on Sep 10, 2020

    @mumoshu
    Collaborator

    @mattymo Thanks for reporting! I think #1466 should fix this one.

  3. added a commit that references this issue on Sep 10, 2020
    832dcf4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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