GithubHelp home page GithubHelp logo

helm-edit's Introduction

Helm Edit

standard-readme compliant Go

Edit a Helm release

This plugin adds helm edit command. It opens the editor defined by HELM_EDITOR, KUBE_EDITOR or EDITOR environment variable and allows to edit the values and upgrade a release.

Install

helm plugin install https://github.com/mstrzele/helm-edit

Usage

$ helm edit smiling-penguin
# Edits the smiling-penguin release

asciicast

Maintainers

@mstrzele

Contribute

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2017 Maciej Strzelecki

helm-edit's People

Contributors

ml- avatar mmartyn avatar mstrzele avatar nirroz93 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

helm-edit's Issues

Error: fork/exec : no such file or directory

I get the following error when I try to edit a release:

$ helm edit rancher
Error: fork/exec : no such file or directory
Usage:
  edit [flags] RELEASE

Flags:
  -a, --all                            edit all (computed) vals
  -m, --disable-default-intersection   If set, user supplied values that are the same as default values won't be "removed" from user supplied values (careful using with -a, setting both of this params won't "merge" the values and all values will become user supplied values)
  -e, --editor string                  name of the editor (default "$EDITOR")
  -h, --help                           help for edit
      --revision int                   edit the current chart with values from old revision
      --timeout duration               time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)
      --wait                           if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout

Error: plugin "edit" exited with error

I use:

macOS 11.2
Helm version v3.5.1 installed via homebrew
KUBE_EDITOR set to nano, however I have tried to set HELM_EDITOR=vi, did not help.

Error connecting to kubernetes

Executing the plugin I've found
Error: Kubernetes cluster unreachable: no Auth Provider found for name "gcp"

All helm commands are working and kubectl except the helm edit command.

Any clue?

Support of helm3

This plugin currently works with helm2 only.
Helm3 doesn't have tiller so the implementation won't work.
Can you please add the support to helm3?

Work is lost if I make a mistake in YAML format

Steps to reproduce:

  • helm edit something.
  • Make a mistake in your YAML syntax

Expected outcome: I get dropped back in the editor with a comment at the top with what I did wrong, or maybe I get a prompt to fix it and then it reopens the editor

Actual outcome:

Error: error converting YAML to JSON: yaml: line 25: mapping values are not allowed in this context
Usage:
  edit [flags] RELEASE

Flags:
  -a, --all                            edit all (computed) vals
  -m, --disable-default-intersection   If set, user supplied values that are the same as default values won't be "removed" from user supplied values (careful using with -a, setting both of this params won't "merge" the values and all values will become user supplied values)
  -e, --editor string                  name of the editor (default "$EDITOR")
  -h, --help                           help for edit
      --revision int                   edit the current chart with values from old revision
      --timeout duration               time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)
      --wait                           if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout

Error: plugin "edit" exited with error

... and now I've lost my work and have to reproduce my changes again.

can has gcp auth provider support?

this is what I get for my gcp gke cluster.

$ helm edit myrelease
Error: Kubernetes cluster unreachable: no Auth Provider found for name "gcp"
Usage:
  edit [flags] RELEASE
...

Is this still maintaining ??

Hi, this plugin is very useful for me.

But I just find out that latest support helm version is 2.7.x , but latest helm version already up to 2.14.x.

So is this still maintaining??

Failed to edit with Error: fork/exec : no such file or directory

./scripts/helm_mac edit cf.20180511.171817 -a
Error: fork/exec : no such file or directory
Usage:
  edit [flags] RELEASE

Flags:
  -a, --all             edit all (computed) vals
  -e, --editor string   name of the editor (default "$EDITOR")
      --timeout int     time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks) (default 300)
      --wait            if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout

Error: plugin "edit" exited with error
./scripts/helm_mac version --debug
[debug] Created tunnel using local port: '58046'

[debug] SERVER: "127.0.0.1:58046"

Client: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}
Kubernetes: &version.Info{Major:"1", Minor:"8+", GitVersion:"v1.8.11-2+fa6873d3e386d7", GitCommit:"fa6873d3e386d7ead42923b24aea3b76e74395a3", GitTreeState:"clean", BuildDate:"2018-04-17T08:10:40Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.