Commit graph

30 commits

Author SHA1 Message Date
Martin Hickey
699ea6dcef
Merge pull request #9066 from scaat/fix-specification
[FIX]Unified go specification
2021-06-02 11:55:53 +01:00
Adam Reese
657ce552cb
fix(*): Validate metadata semver and printable characters
ref: https://github.com/helm/helm/security/advisories/GHSA-c38g-469g-cmgx

* Skip invalid chart versions when reading the repository index file or
  when programmatically adding a chart version.
* Adds semver validation and strips non-printable characters and
  normalizes spaces for string fields in Metadata.Validate()
* Fixes a unit test that was pulling a remote repo.  Now uses a local
  repo.
* Fixes ignored error in repo update command

Signed-off-by: Adam Reese <adam@reese.io>
2021-02-04 12:52:24 -08:00
Scaat Feng
89f2f84a02 [FIX]error string should not be capitalized
Signed-off-by: Scaat Feng <scaat.feng@gmail.com>
2020-11-26 14:13:38 +08:00
Matthew Fisher
6eeec4a002
switched to stricter YAML parsing on plugin metadata files
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-09-17 11:38:28 -07:00
Matt Butcher
809e2d999e
Merge pull request from GHSA-m54r-vrmv-hw33
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-09-17 12:35:10 -06:00
Liu Ming
e1aaf995a6 refactor: alter constant pluginFileName to PluginFileName
in order to reuse the "plugin.yaml" value in installer package
and avoid magic value in installer.go

Signed-off-by: Liu Ming <hit_oak_tree@126.com>
2020-05-05 23:50:45 +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
Adam Reese
d3805a1d54
ref(pkg/cli): refactor environment variable setup
This change sets proper defaults based on environment variables for
global settings and plugin environments.

Signed-off-by: Adam Reese <adam@reese.io>
2019-09-25 14:00:43 -07:00
Matt Farina
1ea53d8934
Unifity environment variable naming and use
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-09-04 14:15:30 -04:00
Adam Reese
1779ad5302
ref(cmd/helm): remove init command
Signed-off-by: Adam Reese <adam@reese.io>
2019-08-26 10:21:52 -07:00
Adam Reese
b6fdd8783b
feat(cmd/helm): remove need for helm init command
* allow repository config via cli
* make `helm repo add` create repo config file if it does not exist
* squash a ton of bugs

Signed-off-by: Adam Reese <adam@reese.io>
2019-08-22 23:31:50 -07:00
Matthew Fisher
186f6c512f
fix(plugin): add HELM_HOME back
This allows Helm 2 plugins that used HELM_HOME as a scratchpad to continue to work the same in Helm 3.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-08-02 13:42:21 -07:00
Matthew Fisher
c728611e5a
feat(cli): support XDG base directory specification
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-08-02 13:15:03 -07: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
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
Adam Reese
21d3a40f3b
feat(tests): replace gometalinter with golangci-lint
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-08 11:45:42 -08:00
Adam Reese
f791421fab
feat(Makefile): add formatting target
Signed-off-by: Adam Reese <adam@reese.io>
2019-02-08 12:24:47 -08:00
Martin Hickey
86d8596763 Feature(Plugins): Enable platform specific commands (#5176)
* Add logic for platform specific commands to plugins
* Add plugins doc updated to incorporate platform specific commands
* Add condition for os match:  If OS matches and there is no more specific match, the command
will be executed
2019-01-16 21:52:58 -08:00
Adam Reese
4f26b658d8
change copyright to "Copyright The Helm Authors" 2018-08-24 12:03:55 -07:00
Adam Reese
c50813af54
ref(*): remove local repository (dead code) 2018-04-25 09:35:29 -07:00
Adam Reese
19398a2ef1
feat(*): store release History in same namespace as release
https://github.com/kubernetes-helm/community/blob/master/helm-v3/003-state.md#namespacing-changes
2018-04-23 09:48:07 -07:00
Adam Reese
358746fee6
ref(*): remove HELM_HOST 2018-04-16 23:16:43 -07:00
Adam Reese
a29e610938
fix(helm): fix flag parsing once and for all 2017-07-14 11:08:50 -07:00
Adam Reese
d797acbd7b
fix(helm): fix race conditions in flag parsing
* fix a number of issues with flag parsing
* add support for `HELM_DEBUG`
* lazy expand flag default envars
2017-05-29 17:58:27 -07:00
Adam Reese
50eee83646
ref(helm): use new debug method to standardize debug output 2017-04-19 23:55:36 -07:00
Gergo Huszty
b4ca198cc6 Pluggable downloaders. Closes #2093, #2094.
It is now possible to create plugins with chart download capabilities for custom, non-http protocols.
Furthermore it is possible to reuse helm packages to implement alternative clients with these custom downloader functions.
2017-04-16 20:58:03 +02:00
Adam Reese
e611936893 ref(plugin): cleanup unused functions 2017-04-07 00:11:23 -07:00
Adam Reese
51b8d8a6ee feat(helm): add plugin management commands
Add plugin management subcommands for installing and removing plugins
to `$HELM_HOST/plugins`.

Install accepts a vcs url or a local directory.

```
$ helm plugin install http://github.com/adamreese/helm-env
Installed plugin: env

$ helm plugin list
NAME    	VERSION	DESCRIPTION
env     	0.1.0  	Print out the helm environment.

$ helm plugin remove env
Removed plugin: env
```

closes #1977
2017-04-06 11:28:09 -07:00
Matt Butcher
fad755e7ae
feat(helm): add plugin system backend
This adds a backend for a plugin system.

Closes #1572
2016-11-29 10:28:54 -07:00