Skip to content

Add ability to not prepend name of chart to generated resourcesย #2828

@nicolai0

Description

@nicolai0

Description of the feature or enhancement:

Adding the ability to not prepend the name of the chart to the synth'd names of the resources defined inside the chart.

Use Case:

I have a project where I'm dealing with multiple clusters. My goal is to be able to do this:

const app = new App()

new OvhClusterChart(app, 'ovh-1', { ... })
new HetznerClusterChart(app, 'hetzner-1', { ... })
new HetznerClusterChart(app, 'hetzner-2', { ... })

app.synth()

Then I can synth my app and there will be one .yaml file for each cluster that I can apply individually.

My problem is that all of the resources defined in those charts will have their name prefixed with the chart name, even though there is no reason to scope them like that because my ovh-1-envoy-deployment will live in an entirely different cluster to hetzner-1-envoy-deployment so it could just be called envoy-deployment.

Proposed Solution:

A property in ChartProps that allows me to exclude the name prefixing.

Other:

  • ๐Ÿ‘‹ I may be able to implement this feature request
  • โš ๏ธ This feature might incur a breaking change

This is a ๐Ÿš€ Feature Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestNew/Enhanced functionality wantedneeds-triagePriority and effort undetermined yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions