Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add abiltiy to edit vlaues #21

Open
rtpro opened this issue Aug 27, 2022 · 0 comments
Open

Add abiltiy to edit vlaues #21

rtpro opened this issue Aug 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@rtpro
Copy link
Contributor

rtpro commented Aug 27, 2022

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
@rtpro rtpro added the enhancement New feature or request label Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant