Skip to content

Add abiltiy to edit vlaues  #21

@rtpro

Description

@rtpro

Add the ability to edit existing helm release values in a text editor.

Command example

helm release values edit <RELEASE NAME>

The command Opens a text editor with the current release values. The values are applied after the changes are saved.


Design

# Create tmp file 
TMPFILE=$(mktemp)

# get values to 
helm  get values <RELEASE> > $(echo $TMPFILE)

# Remove strings "USER-SUPPLIED VALUES:"
sed -i '/USER-SUPPLIED VALUES:/d' $TMPFILE

# Open default text editor 
"${EDITOR:-vi}" $TMPFILE

# Apply values 
helm release upgrade <RELEASE> --values $TMPFILE

# Delete tmp file 
rm -f $TMPFILE

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions