Skip to content

A helm v3 plugin to get values from a previous release

License

Notifications You must be signed in to change notification settings

HamzaZo/helm-val

Repository files navigation

Licence Helm

helm-val

helm-val is a helm plugin to fetch values from a previous release.

Getting started

Installation

To install the plugin:

$ helm plugin install https://github.com/HamzaZo/helm-val

Update to latest

$ helm plugin update val

Install a specific version

$ helm plugin install https://github.com/HamzaZo/helm-val --version 0.3.2

You can also verify it's been installed using

$ helm plugin list

Usage

$ helm val 
The val plugin helps you to get values from an old release

Usage:
  val [command]

Available Commands:
  fetch       Fetch values from previous release
  help        Help about any command

Flags:
  -h, --help   help for val

Use "val [command] --help" for more information about a command.


fetch values

$ helm val fetch -h
Fetch values from previous release with(or without) specific revision using '--revision'.

Examples:
        
    $ helm val fetch RELEASE-NAME -r/--revision 1

    $ helm val fetch RELEASE-NAME -n/--namespace <ns>
 
    $ helm val fetch RELEASE-NAME -c/--kube-context <ctx>
 
    $ helm val fetch RELEASE-NAME -k/--kubeconfig <kcfg>

Usage:
  val fetch RELEASE-NAME [flags]

Flags:
  -h, --help                  help for fetch
  -c, --kube-context string   name of the kubeconfig context to use
  -k, --kubeconfig string     path to the kubeconfig file
  -n, --namespace string      namespace scope for this request
  -o, --output format         prints the outputs in the specified fomat. Allowed format: table,json,yaml (default table)
  -r, --revision int          number of revision release

Note: In case you don't specify a revision it'll automatically fetch values of the preceding release.