Commit Graph
18 Commits
Author SHA1 Message Date
Terry Howe df482346db fix: lint test SetEnv errors
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-06-15 08:50:39 -06:00
Matthieu MOREL 56a2bb4188 chore: enable usetesting linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-05-30 08:12:11 +02:00
Matt Farina 2236294119 Updating to helm.sh/helm/v4
Since Helm is going through breaking changes with Helm v4, the version path to
Helm needs to be updated.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2024-12-26 16:33:51 -05:00
Nathan Baulch ef85fa7f2d Grammar fixes
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
2024-09-14 10:30:31 +10:00
Matthew Fisher 2878cc8079 replace +build with go:build
go:build is the new conditional compilation directive used to specify build constraints. It was introduced in Go 1.17. It is meant to replace the old +build directives.

Now that go.mod points to Go 1.17 we no longer need to support both
build flags.

Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
2022-04-14 07:56:31 -07:00
Martin Hickey ea1b1f5a07 Use buffered channel for signal notification
Refer to https://pkg.go.dev/os/signal#Notify for more details.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2021-11-16 15:42:48 +00:00
Matt Farina be38084eb4 Fixing argument to be lower case
Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-05-05 10:27:47 -04:00
Matt Farina 2334195a01 Adding Helm env vars where XDG exposed
Helm had been exposing XDG based variables to end users. This lead
to confusion. For example, if a user wanted to change the cache
location Helm used should they change the XDG variable? Since this
would be like changing the HOME environment variable the answer
is no.

This change adds HELM_*_HOME environment variables to be used
in addition to XDG ones of the same name. Helm will now look
for the Helm specific variable. If not set, Helm will fall
back to XDG locations. If those are not set a default location
will be used. This keeps XDG in use as a default when present,
provides users with the ability to set the location, and removes
XDG from being exposed to end users to avoid confusion.

Closes #7919

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-04-28 11:28:56 -04:00
Song Shukun eda60a59b6 pkg/helmpath: fix unit test for Windows
Signed-off-by: Song Shukun <song.shukun@fujitsu.com>
2020-02-19 16:52:28 +09:00
Matthew Fisher 29fc78f975 Merge pull request #6975 from jabielecki/doc-helmpath
doc(helmpath) move licensing info out of godoc
2020-01-17 11:59:10 -08:00
Marc Khouzam f437b4d6c9 feat(comp): Speed up completion of charts
The completion of charts was using 'helm search repo' which can be
quite slow as it must parse the entire yaml of every repo cache file.
Using completion for a chart name can end up triggering multiple calls
to 'helm search'; this makes the user experience poor, as there is
a delay of over a second at every <TAB> press.

This commit creates a cache file for each repo which contains the list
of charts for that repo.  The completion logic then uses this new
cache file directly and obtains the chart names very quickly.

With only the stable repo configured, this optimization makes the
completion of charts about 85 times faster, going from 1.2 seconds to
0.014 seconds; such a difference gives a much better user experience
when completing chart names.

On the other hand, adding the creation of the chart list cache file to
'helm repo update' or 'helm repo add' is pretty much negligible compared
to the downloading of the index file.

It is also worth noting that when more repos are configured,
'helm search repo' only becomes slower, while the completion logic that
uses the new chart list cache file will not be affected as it only looks
for the single relevant repo file.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2020-01-12 00:47:17 -05:00
Jakub Bielecki 3973fa877f doc(helmpath) move licensing info out of godoc
Add intervening line into lazypath.go, so that license is
not treated by godoc as a package description.

Standardize license comment for xdg package.

Add missing package descriptions.

Signed-off-by: Jakub Bielecki <jakub.bielecki@codilime.com>
2019-12-17 05:23:57 +01: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 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
Adam Reese 4e625df328 fix(helmpath): fix syntax errors for windows tests
Signed-off-by: Adam Reese <adam@reese.io>
2019-08-08 10:07:56 -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
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