Skip to content

helm ssm silently replaces Go templating expressions like {{ .Values.clients | join " " }} with empty strings #77

@yabedalqader

Description

@yabedalqader

Summary

When using the helm ssm plugin with a values.yaml file that contains Go templating expressions (e.g., {{ .Values.tenants | join " " }}), the plugin silently replaces them with an empty string instead of preserving or raising an error.

Steps to Reproduce

  1. Create a values.yaml file with the following content:
clients:
  - alpha
  - beta

env:
  - name: REX_TENANTS
    value: '{{ $.Values.clients | join " " }}'
  1. Run the following command:

helm ssm -v -d -f values.yaml

  1. The resulting file contains:
env:
  - name: REX_TENANTS
    value: ""

Expected Behavior

Ideally, the plugin should:

leave the templating intact, since it doesn't start with ssm keyword

Actual Behavior

The plugin replaces templated values with an empty string, which leads to confusing silent failures and unexpected behavior in Helm charts.

Thanks for the great work on the plugin! This fix would help users avoid silent issues during deployments.

Metadata

Metadata

Assignees

No one assigned

    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