Skip to content

Template is failing to rended when objectSelector.matchExpressions is set #4481

@taraspos

Description

@taraspos

Bug Description

Failing to render helm template when objectSelector.matchExpressions is not empty:

Helm upgrade failed for release kube-system/aws-load-balancer-controller
      with chart aws-load-balancer-controller@1.16.0: YAML parse error on aws-load-balancer-controller/templates/webhook.yaml:
      error converting YAML to JSON: yaml: line 74: did not find expected key'

Steps to Reproduce

  • Step-by-step guide to reproduce the bug:
    • Update values.yaml with following:

      +clusterName: test
       objectSelector:
           matchExpressions:
      +      - key: key
      +        operator: In
      +        values:
      +        - value
    • Run helm template .

Expected Behavior
Template rendered successfully

Actual Behavior
Template rendering fails

Regression
Was the functionality working correctly in a previous version ? Yes
If yes, specify the last version where it worked as expected - < v1.15.0

Current Workarounds

Environment
N/A

Possible Solution (Optional)

Contribution Intention (Optional)

  • Yes, I'm willing to submit a PR to fix this issue
  • No, I cannot work on a PR at this time

Additional Context

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions