Skip to content

[BUG]: namespace missing from Helm Chart templates. #344

@kevin-kho

Description

@kevin-kho

Version

v0.4.0

Which installation method(s) does this occur on?

Source

Describe the bug.

When running helm template, against charts/topograph, the rendered manifests are missing metadata.namespace from namespace-scoped resources.

This does not affect topograph installations via Helm or ArgoCD where you can specify a destination namespace.

It does affect workflows where users are using kubectl diff to check changes against a specific resource, or kubectl apply to install topograph.
Omitting spec.metadata will default to the default namespace

I am using Helm v4.2.0

Minimum reproducible example

1. Clone repository
2. Run `helm template topograph charts/topograph --namespace topograph` > manifest.yaml
3. Reading `manifest.yaml` you will see namespaced scoped resources (such as ServiceAccount) missing `metadata.namespace`
    3a.`kubectl diff` will show the namespace-scoped resources will be applied to the `default` namespace.

Relevant log output

Full env printout

Other/Misc.

No response

Code of Conduct

  • I agree to follow THIS PROJECT's Code of Conduct
  • I have searched the open bugs and have found no duplicates for this bug report

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions