Skip to content

--set flag parses numbers as float64 #83

Closed

Description

@kujenga

This is effectively the same issue as one filed in Helm upstream, helm/helm#1707, which was resolved in this PR, which adds a --set-string flag to set string values specifically: helm/helm#3599

In order to handle this error case, I believe that helm-diff needs to add support for this flag as well.

Activity

  1. kujenga commented on Aug 21, 2018

    @kujenga
    ContributorAuthor

    PR is now open for this here: #84

  2. mumoshu commented on Aug 22, 2018

    @mumoshu
    Collaborator

    @kujenga Thanks a lotfor the report and the PR!
    I'm aware of the issue and am likely to merge your PR relatively soon 👍

    My only concern is how we could test it and verify it properly follows the upstream implementation, as we may end up adding support also for --set-file 🤔So please let me think for a while.
    In case you have good idea(s) for that, I'd appreciate your help.

  3. kujenga commented on Aug 22, 2018

    @kujenga
    ContributorAuthor

    I see, makes sense! I have tested the myself for the issue that motivated this issue and the PR, and I did my best to mirror the implementation in Helm almost exactly, so I think the risk of having divergent behavior is fairly low, but I certainly see the point.

    I wasn't aware of --set-file, but that definitely seems worthy of inclusion as well! Just thinking out loud, it might be nice if Helm proper exposed the configuration for these flags through an API that plugins could make use if. If that were the case, your PR here would have done this automatically: #82

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

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