Adam Reese
2aee21730d
Merge pull request #6142 from joelanford/decouple-cli-vals
...
cmd/*,pkg/*: move ValueOptions and decouple from SDK
5 years ago
Matthew Fisher
c728611e5a
feat(cli): support XDG base directory specification
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Joe Lanford
68ee30b48c
cmd/*,pkg/*: move ValueOptions to cmd package and decouple from SDK
...
Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
5 years ago
Taylor Thomas
0d8b30f46d
Merge pull request #6085 from thomastaylor312/ref/better_kube_client
...
ref(*): Refactors kube client to be a bit more friendly
5 years ago
Karuppiah Natarajan
6d02079016
Fix values being ignored when reusing values on upgrade
...
Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
Co-authored-by: Nandhagopal Ezhilmaran <nandhagr8@gmail.com>
5 years ago
Ian Howell
ef46a0c1e7
fix(pkg/action): Allow name re-use for helm template
...
Signed-off-by: Ian Howell <ian.howell0@gmail.com>
5 years ago
Taylor Thomas
dd8222d7f2
Removes clientset method from interface in favor of the configuration struct
...
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
5 years ago
Taylor Thomas
f6116a7ca9
Fixes issues with delete
...
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
5 years ago
Taylor Thomas
15fc57f8a3
ref(*): Refactors kube client to be a bit more friendly
...
This changes most of the KubeClient interface to only ever build objects once and
then pass in everything as lists of resources. As a consequence, we needed to refactor
several of the actions. I took the opportunity to refactor out some duplicated
code while I was in the same area
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
5 years ago
Martin Hickey
5410e7d346
Fix style conformance issues
...
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
5 years ago
hd-rk
71c2bba69d
fix: call chartutil.ProcessDependencies in action.Install
...
Signed-off-by: hd-rk <hdn314159@gmail.com>
5 years ago
Matthew Fisher
63d7a0c2cf
Merge pull request #6070 from bacongobbler/fix-6059
...
Use chart version as default tag when saving
5 years ago
Matthew Fisher
2045fab01f
ref(action): remove ParseReferenceWithChartDefaults
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Josh Dolitsky
b3fd254991
Use chart version as default tag when saving
...
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
5 years ago
Matthew Fisher
7de91248ce
feat(template): introduce --validate
...
This feature flag allows `helm template` to be used against a live cluster. Some charts need CRDs to be applied to the cluster before calling `helm install`. This allows users to validate their templates will render with those resources set.
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Taylor Thomas
2c397b6879
Merge pull request #6011 from thomastaylor312/feat/atomic
...
feat(*) Adds atomic flag to v3
5 years ago
Matthew Fisher
2800c56f9d
ref(downloader): pass in options to ChartDownloader
...
This restores the ability to pass in parameters at runtime to the
ChartDownloader, enabling users to pass in parameters like the --username
and --password flags.
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matthew Fisher
d23d68d51c
Merge pull request #5881 from torstenwalter/template
...
helm 3: support writing multiple resources to the same file
5 years ago
Torsten Walter
ec038337a4
support writing multiple resources to the same file
...
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
5 years ago
Oleg Sidorov
ec440d446d
Replaced ghodss/yaml with sigs.k8s.io/yaml
...
This commit replaces usage of github.com/ghodss/yaml with it's forked
version maintained by SIG community. The replaced library has
low-to-none support activity unlike the latter. We believe the new
Helm branch could benefit from using the community-supported version on
a long-term run as yaml parser is a key component of Helm chart rendering
engine.
This commit locks sigs.k8s.io/yaml dependency version on 1.1.0 which
is backwards compatible with ghodss/yaml 1.0.0.
This change also resolves the outdated dependency version lock for
ghodss/yaml (currently 1.0.0) and makes it possible to port changes from
https://github.com/helm/helm/pull/6010 to dev-v3.
Signed-off-by: Oleg Sidorov <oleg.sidorov@booking.com>
5 years ago
Taylor Thomas
29c343278e
feat(action): Refactors unit tests with better fakes
...
This also adds unit tests for the Atomic and Wait functionality
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
5 years ago
Taylor Thomas
93d07c862d
feat(*): Adds back --atomic functionality to Helm 3
...
This does not include the cleanup on fail logic as that will be reintroduced
in a future PR
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
5 years ago
Andrew Rudoi
09e1f8aeb1
chore: add ValueOptions constructor
...
Signed-off-by: Andrew Rudoi <arudoi@newrelic.com>
5 years ago
Matt Farina
ff818fceca
Merge pull request #5860 from mattfarina/moar-capabilities-v3
...
Expose the resource types in addition to the api group/version in templates
5 years ago
Taylor Thomas
51ad3cd357
ref(*): Refactors the history action to return releases instead of formatted output
...
Output utilities have been moved to their own file and streamlined as well
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
5 years ago
Taylor Thomas
d031651c45
fix(pkg/action): Adds back in missing wait functionality
...
In my previous PR, I did not notice that the wait functionality had been completely removed
from the actions. This restores wait functionality to upgrade and rollback
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
5 years ago
Matthew Fisher
e410a03c74
ref(getter): introduce Options for passing in getter parameters
...
instead of hard-coding the parameters being passed in the constructor, we should pass in an Options struct that can be used to pass in those parameters.
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matt Farina
64496cdc07
Expose the resource types in addition to the api group/version in templates
...
Ported #5842 to Helm v3
Signed-off-by: Matt Farina <matt@mattfarina.com>
5 years ago
Martin Hickey
ed68cbda3c
Fix linter issues
...
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
5 years ago
Matthew Fisher
da83115510
Merge pull request #5539 from jan25/fix-list-sorting-5499
...
fix(helm): sort release list with flags --reverse and --date
5 years ago
Matthew Fisher
f1594e564a
Merge pull request #5824 from rokii/fix5792
...
fix issue that values are not applied while running upgrade cmd
5 years ago
rokii
897a79a57f
fix and add test cases
...
Signed-off-by: rokii <shangtaocn@gmail.com>
5 years ago
Torsten Walter
829d8ff4d6
Revert "do not write empty templates to disk"
...
This reverts commit da260ec15f
.
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
5 years ago
Torsten Walter
0528c7bb19
add test for output-dir
...
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
5 years ago
Torsten Walter
7347be61ee
Merge branch 'dev-v3' into output-dir
5 years ago
rokii
871b092f32
fix issue 5792
...
Signed-off-by: rokii <shangtaocn@gmail.com>
5 years ago
Torsten Walter
da260ec15f
do not write empty templates to disk
...
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
5 years ago
Torsten Walter
cb58035f90
use outputDir instead of hardcoded value
...
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
5 years ago
Adam Reese
f1718462c9
Merge pull request #5761 from cpanato/GH-5741
...
fix missing package name
5 years ago
Adam Reese
b49db9e6e6
ref(pkg/chartutil): break up chartutil into logical files
...
Signed-off-by: Adam Reese <adam@reese.io>
5 years ago
Torsten Walter
24578a6411
support --output-dir option for helm3 template
...
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
5 years ago
Carlos Panato
b5f83a08e3
fix missing package name
...
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
5 years ago
Adam Reese
590bf10ab5
fix(pkg/action): add namespace to release options
...
ref: https://github.com/helm/helm/issues/5732
Signed-off-by: Adam Reese <adam@reese.io>
5 years ago
Adam Reese
0338576fc5
ref(pkg/kube): cleanup kube client interface
...
* move the main interface to it's own file
* removed summarizeKeptManifests() which was the last place kube.Get()
was called
* when polling for hooks, use external types
* refactor out legacyschema
* refactor detecting selectors from object
* refactor creating test client
Signed-off-by: Adam Reese <adam@reese.io>
5 years ago
Martin Hickey
22d0ba8b51
Print manifest output for dry-run option
...
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
5 years ago
Adam Reese
8d1590016c
Merge pull request #5646 from adamreese/v3/kube-wait
...
ref(pkg/kube): extract wait logic from install/update
5 years ago
Adam Reese
b97f881be0
ref(*): use time.Duration for timeouts
...
Signed-off-by: Adam Reese <adam@reese.io>
5 years ago
Adam Reese
097834de0a
ref(pkg/chartutil): remove k8s version object dependency
...
Flattens the `.Capabilities` built-in and removes useless kubernetes
runtime metadata.
Signed-off-by: Adam Reese <adam@reese.io>
5 years ago
Adam Reese
2dd4744d23
ref(pkg/kube): extract wait logic from install/update
...
This change adds a new method for waiting for kubernetes resources.
Signed-off-by: Adam Reese <adam@reese.io>
5 years ago
Adam Reese
b8bced2649
fix(pkg/action): load clients after flags have been parsed ( #5681 )
...
Signed-off-by: Adam Reese <adam@reese.io>
5 years ago