Skip to content

Bug: Substitution fails on prefix replacement with empty prefix #947

Description

@solidDoWant

The following variable substitution is valid in bash:

$ v=somevalue
$ echo "${v/#/prefix-}"
prefix-somevalue

When used with flux, this fails and the Kustomization controller throws an envsubst error: unable to parse substitution within function error. To reproduce, define a variable (any value), and reference it in a manner similar to ${SOME_VAR/#/prefix-}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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