Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

Namespace defined templates in _helpers.tpl #1785

@kevinschumacher

Description

@kevinschumacher

Is this a BUG REPORT or FEATURE REQUEST? (choose one):
FEATURE REQUEST

I'd like to be able to depend on charts in the stable repository without having to inspect the charts' defined templates each version.

In the Helm documentation's Chart Best Practices, there is this to say about names of defined templates:

Defined templates (templates created inside a {{ define }} directive) are globally accessible. That means that a chart and all of its subcharts will have access to all of the templates created with {{ define }}.

For that reason, all defined template names should be namespaced.

Most of the charts in the stable and incubator repositories do not follow this best practice.

As PR's are submitted and merged, I will update this issue to track progress.

Which chart:
All of them except the below 6

List of Charts to be updated

What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:

-- Questions for the chart maintainers:

Are there any charts which should not be updated in this way?

Does this change break the chart's API?

  • What does that mean for chart versioning?
  • Am I correct to increment the patch version, as I have been doing? See [stable/postgresql] namespace template helpers with chart name #1777 for example
    Because this is a distruptive change, I am incrementing major when major > 0, else incrementing minor. A few PRs which were opened/merged prior had the patch version incremented only.

Helper scripts here:
https://gist.github.com/kevinschumacher/a10162f18be905b62a02ed65d36ab2cf

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions