Skip to content

[BUG] - yaml mangled by whitespace removal in front/service-external #508

@cyanidium

Description

@cyanidium

Describe the bug
d6bad0d introduced an extra whitespace removal dash that mangles front/service-external if .Values.front.externalService.type is not ClusterIP.

To Reproduce
Steps to reproduce the behavior (include specific Helm or Kubernetes commands if applicable):

  1. Set .Values.front.externalService.type to LoadBalancer
  2. Run helm template
  3. Observe output Error: YAML parse error on mailu/templates/front/service-external.yaml: error converting YAML to JSON: yaml: line 22: mapping values are not allowed in this context

Templated output looks like:

spec:
  selector:
    ...
  type: LoadBalancerexternalTrafficPolicy: Local
  ports:

Notice that type and externalTrafficPolicy are on the same line

Expected behavior
The values should be on separate lines.

Environment (please complete the following information):

  • Helm Chart Version: 2.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues that are confirmed to be bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions