Skip to content

snakecase template function turns abc_123_def into abc_123__def #11458

Closed

Description

@jwhitaker-swiftnav

As per the title, running

{{ "abc_123_def" | snakecase }}

in my template givesabc_123__def. I would expect it to give abc_123_def.

I've tracked down the issue to an indirect dependency and raised a PR - huandu/xstrings#52 . However I still want to raise this in helm directly to track until it's fixed and updated.

Thanks!

Output of helm version:

version.BuildInfo{Version:"v3.9.4", GitCommit:"dbc6d8e20fe1d58d50e6ed30f09a04a77e4c68db", GitTreeState:"clean", GoVersion:"go1.17.13"}

Output of kubectl version:

Client Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.3", GitCommit:"434bfd82814af038ad94d62ebe59b133fcb50506", GitTreeState:"clean", BuildDate:"2022-10-12T10:57:26Z", GoVersion:"go1.19.2", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"23+", GitVersion:"v1.23.10-eks-15b7512", GitCommit:"cd6399691d9b1fed9ec20c9c5e82f5993c3f42cb", GitTreeState:"clean", BuildDate:"2022-08-31T19:17:01Z", GoVersion:"go1.17.13", Compiler:"gc", Platform:"linux/amd64"}

Cloud Provider/Platform (AKS, GKE, Minikube etc.):
N/A

Activity

  1. added
    bug
    on Oct 21, 2022
  2. yxxhero commented on Oct 23, 2022

    @yxxhero
    Member
  3. hickeyma commented on Oct 24, 2022

    @hickeyma
    Contributor
  4. yxxhero commented on Oct 24, 2022

    @yxxhero
    Member
  5. self-assigned this
    on Oct 30, 2022
  6. yxxhero commented on Oct 30, 2022

    @yxxhero
    Member
  7. yxxhero commented on Oct 30, 2022

    @yxxhero
    Member
  8. yxxhero commented on Dec 5, 2022

    @yxxhero
    Member

    see: #11582

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions