Skip to content

Allow keeping stdout/stderr separated when rendering helm templates #986

@cgirard-mir

Description

@cgirard-mir

We have some use cases where rendering helm charts with overridden values causes helm to produce warnings on stderr, but otherwise finishes successfully. We use the helm.RenderTemplate() method to perform this rendering. Unfortunately, the method only supports returning the combined stdout+stderr and this causes our subsequent UnmarshalK8SYaml() call to fail because the text is no longer valid YAML.

It would be nice if the method could be called while keeping the two output streams separated. A couple of ideas are to either create a second method that works this way, or perhaps passing an option to the current method to allow this behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttrial projectSuitable for trial projects

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions