Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add .Release.Namespace in metadata #152

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

jbertozzi
Copy link
Contributor

Adding .Release.Namespace in metadata fixes issues when rendering template with 'helm template --namespace'. Without it, the rendered templates do not have the namespace defined which is problematic when using a gitops approach.

Checklist:

  • I have bumped the chart version according to versioning.
  • I have updated the chart changelog with all the changes that come with this pull request according to changelog.
  • Any new values are backwards compatible and/or have sensible default.
  • I have signed off all my commits as required by DCO.

Adding .Release.Namespace in metadata fixes issues when rendering template with 'helm template --namespace'. Without it, the rendered templates do not have the namespace defined which is problematic when using a gitops approach.

Signed-off-by: Jérémy Bertozzi <jeremy.bertozzi@gmail.com>
@Azahorscak
Copy link

Came here to do just this, thanks!

Copy link
Collaborator

@shubham-cmyk shubham-cmyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shubham-cmyk shubham-cmyk merged commit ee8cc5b into coredns:master Nov 29, 2023
2 checks passed
@jbertozzi
Copy link
Contributor Author

helm/helm#3553

jamiees2 pushed a commit to Asana/coredns-chart that referenced this pull request Apr 4, 2024
Adding .Release.Namespace in metadata fixes issues when rendering template with 'helm template --namespace'. Without it, the rendered templates do not have the namespace defined which is problematic when using a gitops approach.

Signed-off-by: Jérémy Bertozzi <jeremy.bertozzi@gmail.com>
Co-authored-by: Jérémy Bertozzi <jeremy.bertozzi@foyer.lu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants