19 Commits

Author SHA1 Message Date
AdamKorcz
6fc815da5a pkg/action: fix nil-dereference
Signed-off-by: AdamKorcz <adam@adalogics.com>
2023-03-22 14:35:57 +00:00
Soule BA
11738dde51 Provide a helper to set the registryClient in cmd
If enabled the registryClient is set using a helper that accepts the TLS
flags. This keeps the client creation consistent accross the different
commands.

Signed-off-by: Soule BA <bah.soule@gmail.com>
2023-03-03 07:33:17 -06:00
Matt Farina
548ec55cf9 Fix panic with OCI for install, upgrade, and show
When range support for OCI went in via #10527 it created a situation
where some lookups for a chart could cause a panic. This change
makes sure the registry client is available to lookup OCI charts

Signed-off-by: Matt Farina <matt.farina@suse.com>
2022-01-12 21:30:27 -05:00
Matt Farina
0ff53945bf Fixing issue where helm show all fails to show crds when no readme
Closes #10058

Signed-off-by: Matt Farina <matt.farina@suse.com>
2021-08-25 11:50:17 -04:00
Mario Valderrama
fae7853c2a Implement show crds subcommand
This subcommand will display manifests under `crds/` if some exist.

This also changes the behaviour of `show all` to include CRDs.

Signed-off-by: Mario Valderrama <woldy401@gmail.com>
2021-08-18 19:22:47 +02:00
Dong Gang
df4708a9de polish the error handler
Signed-off-by: Dong Gang <dong.gang@daocloud.io>
2020-08-05 10:37:00 +08:00
Dong Gang
1dfe66aa85 fix the code style error
Signed-off-by: Dong Gang <dong.gang@daocloud.io>
2020-07-13 19:11:40 +08:00
Dong Gang
57bd8a71b0 feature(show): support jsonpath output for helm show value
Signed-off-by: Dong Gang <dong.gang@daocloud.io>
2020-07-13 18:59:09 +08:00
Adam Reese
44a2225035 ref(tests): localize unit test fixtures to package
Use test fixtures that are in the same package as test.

Signed-off-by: Adam Reese <adam@reese.io>
2020-05-22 11:39:20 -07:00
Martin Hickey
a6994f6659 Port --devel flag from v2 to v3
Helm v2 PR #5141

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2020-03-06 17:04:49 +00:00
Song Shukun
e9f40ed7a5 fix golint failure in pkg/action
Signed-off-by: Song Shukun <song.shukun@fujitsu.com>
2020-02-18 23:15:56 +09:00
Matthew Fisher
bd1f4a443e fix(show): restore comments from raw values
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-11-05 11:50:30 -08:00
Matt Farina
9bc7934f35 Updating the module for v3 as the major version
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-10-03 14:27:05 -04:00
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>
2019-07-12 16:52:15 +02:00
Adam Reese
895e9192d4 feat(*): use vanity import helm.sh/helm
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-13 13:43:47 -07:00
Matthew Fisher
017790d0e3 ref(action): remove ParseShowOutputFormat
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-13 12:13:40 -07:00
Matthew Fisher
f185103b60 ref(action): move AddFlags functions back to cmd
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-13 08:58:35 -07:00
Matthew Fisher
2b775d693d ref(action): remove io.Writers, return string instead
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-13 08:33:06 -07:00
Matthew Fisher
2571dbf82f ref: remove pkg/helm, pkg/hapi, pkg/tiller
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-12 09:47:12 -07:00