Commit Graph

213 Commits

Author SHA1 Message Date
Matt Farina d6db69ed66
bump version to v3.17.0
Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 301108edc7)
2025-01-06 14:20:59 -05:00
Nathan Baulch ef85fa7f2d
Grammar fixes
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
2024-09-14 10:30:31 +10:00
Matt Farina c81bd8912e
Revert "Improve helm dependency update performance"
The change in #11726 caused a regression where `helm dependency udpate`
stopped working. The format of the internal representation of the data
changed causing errors of "non-absolute URLs should be in form of
repo_name/path_to_chart". See #13324 for more details.

Since this change is in released Helm and it's a regression, reverting
the original change was the fastest and safest route to deliver a
fix as quickly as possible.

Closes #13324

Signed-off-by: Matt Farina <matt.farina@suse.com>
2024-09-12 10:37:15 -04:00
Matt Farina d644da6205
bump version to v3.16.0
Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 0d439e1a09)
Signed-off-by: Matt Farina <matt.farina@suse.com>
2024-09-03 16:43:48 -04:00
MichaelMorris 9e5f465499 Merge branch 'helm:main' into fixDepUpPerformance
Signed-off-by: MichaelMorris <michael.morris@est.tech>
2024-08-02 00:03:15 +01:00
Matt Farina 79cad1a133
Merge pull request #12934 from AndiDog/error-message-chart-version
Add error details when a dependent chart's version cannot be found in a repo
2024-06-10 10:15:34 -04:00
Robert Sirchia 30a5598f2b Update walk.go
Putting a comment on why we are logging a found symlink.

Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-05-23 15:59:25 -04:00
Matt Farina 886e626636 bump version to v3.15.0
Signed-off-by: Matt Farina <matt@mattfarina.com>
(cherry picked from commit d7afa3b6b4)
2024-05-08 12:27:50 -04:00
Matt Farina 7b70fdf2a2
Merge pull request #12701 from mattfarina/bump-version-3.14
bump version to 3.14
2024-05-08 12:22:08 -04:00
Jeff van Dam dc761caf00
Merge branch 'helm:main' into fixDepUpPerformance 2024-04-29 13:59:51 +01:00
Andreas Sommer ac75eae98c Add error details when a dependent chart's version cannot be found in a repo
Signed-off-by: Andreas Sommer <andreas.sommer87@googlemail.com>
2024-04-10 12:04:26 +02:00
Robert Sirchia d58d7b3762 Fixing all the linting errors
Cleaned up all the linting errors we are getting.

Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-03-11 17:13:34 -04:00
Matt Farina f4c37e7db5
bump version to
Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 69dcc92c56)
2024-01-09 13:19:12 -05:00
Ismail Alidzhikov 5586760133 Make the `ignore` pkg public again
Signed-off-by: Ismail Alidzhikov <i.alidjikov@gmail.com>
2023-12-22 09:14:12 +02:00
Matt Farina c372b15022
bump version to v3.13.0
Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 825e86f6a7)
2023-09-18 16:01:43 -04:00
Jeff van Dam 183f01b32c Made urls key more specific
Signed-off-by: Jeff van Dam <jeff.van.dam@est.tech>
2023-09-01 16:13:03 +01:00
Eng Zer Jun 2ceebffc77
test: replace `ensure.TempDir` with `t.TempDir`
This commit replaces `ensure.TempDir` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.

Prior to this commit, temporary directory created using `ensure.TempDir`
needs to be removed manually by calling `os.RemoveAll`, which is omitted
in some tests. The error handling boilerplate e.g.
	defer func() {
		if err := os.RemoveAll(dir); err != nil {
			t.Fatal(err)
		}
	}
is also tedious, but `t.TempDir` handles this for us nicely.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-07-29 16:11:22 +08:00
Matt Farina 1800554452
bump version to v3.12.0
(cherry picked from commit 54a0fac9b5e243d9922dbfb412bff17eb161e361)
Signed-off-by: Matt Farina <matt.farina@suse.com>
2023-05-01 14:08:09 -04:00
JvD_Ericsson 1ce7939838 Improve helm dependency update performance
What this PR does / why we need it:
This PR was created to improve performance of the dependency update command by
skipping unnecessary downloading and loading of index files that have already
been downloaded and loaded

I believe this would close refs #9865

Signed-off-by: Jeff van Dam <jeff.van.dam@est.tech>
2023-04-24 17:35:50 +01:00
Matt Farina 8c4c635e9e
Merge pull request #11832 from my-git9/chore-httpstatus
chore:Use http constants as http.request parameters
2023-04-10 12:25:10 -04:00
Matt Farina 4e7e939f19
Updating the Go version in go.mod
At this time both Go 1.19 and 1.20 are supported. The version
specified in the go.mod file is the minimum version we expect Helm
to be compiled against. This is the oldest supported version to
support environments where others compile Helm. The Helm project
is using Go 1.20 to build Helm itself.

Updating to Go 1.19 also includes dealing with io/ioutil
deprecation and some additional linting issues around staticcheck.
All the staticcheck issues were in test files so linting was
skipped for those.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2023-03-22 11:52:30 -04:00
Matt Farina 50c22ed7f9
Bump the Go version
Needed to gofmt source to meet changes in style

Signed-off-by: Matt Farina <matt.farina@suse.com>
2023-03-22 11:29:26 -04:00
Andrew Block 08593c8dd6
Added support for insecure OCI registries
Signed-off-by: Andrew Block <andy.block@gmail.com>
2023-03-03 07:33:17 -06:00
xin.li 8a310c5a98 chore:Use http constants as http.request parameters
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-19 21:13:30 +08:00
Matt Farina 6facbada26
bump version to v3.11.0
Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 9d8fee155b)
2023-01-09 21:23:22 -05:00
Matt Farina cd809f9b19
bump version to v3.10.0
Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit ce66412a72)
2022-09-12 15:29:41 -04:00
yxxhero 39b0a82365 bump Go 1.18
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-07-03 10:19:15 +08:00
Matt Farina 1db28a2311
bump version to v3.9.0
Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 7ceeda6c58)
2022-05-09 15:20:33 -04:00
Matt Farina 2e6b5e1374
Updating symlink log message
The symlink message did not tell anyone what Helm does with the contents
of the linked file. These are used in 2 places:
1. When loading a chart as a directory
2. When creating a chart archive (the linked files contents are
   included)

Signed-off-by: Matt Farina <matt.farina@suse.com>
2022-04-29 14:11:05 -04:00
Martin Hickey c477d697ec
Merge pull request #10458 from SimonAlling/remove-AssertGoldenBytes
Remove AssertGoldenBytes test helper
2022-04-29 09:37:23 +01: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
Josh Dolitsky 65d8e72504
Merge pull request #10628 from sabre1041/oci-dependencies-tag
Avoid querying for OCI tags can explicit version provided in chart dependencies
2022-02-24 08:25:21 -06:00
Eng Zer Jun 2e3e22a003
test: use `T.TempDir` to create temporary test directory
The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-02-12 13:54:54 +08:00
Andrew Block 01ff5bb00d
Avoid querying for OCI tags can explicit version provided in chart dependencies
Signed-off-by: Andrew Block <andy.block@gmail.com>
2022-01-30 15:53:08 -06:00
Matt Farina 0c8320b685
bump version to v3.8.0
Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit d493f29c32)
2022-01-13 10:09:43 -05:00
David Peraza 7cab1a09e3 Move all the remainder module out of experimental.
All the experimental modules were moved to pkg/action

Signed-off-by: David Peraza <dperaza@redhat.com>
2022-01-12 22:51:32 -05:00
David Peraza 9f869c6b21 Removing all the checks for oci experimental flag
Signed-off-by: David Peraza <dperaza@redhat.com>
2022-01-12 21:49:26 -05:00
Thomas Runyon 353d74e967 refactor internal/experimental/registry to pkg/registry
Signed-off-by: Thomas Runyon <runyontr@gmail.com>
2022-01-12 21:49:26 -05:00
Scott Rigby 808a2d1908
Change underscore (_) back to plus (+) for Helm
Signed-off-by: Scott Rigby <scott@r6by.com>
2022-01-12 17:59:56 -05:00
Scott Rigby bd754a054c
Bring exact version check logic from IndexFile.Get into registry tag check
Signed-off-by: Scott Rigby <scott@r6by.com>
2022-01-12 17:42:52 -05:00
Andrew Block 9c3b000889
Fixed bad commit
Signed-off-by: Andrew Block <andy.block@gmail.com>
2022-01-11 21:05:28 -06:00
Andrew Block 828941b273
Readded resolver OCI logic
Signed-off-by: Andrew Block <andy.block@gmail.com>
2022-01-11 20:54:47 -06:00
Andrew Block 291c17fcc5
Enabled auth and support http registries for OCI
Signed-off-by: Andrew Block <andy.block@gmail.com>
2022-01-11 21:47:04 -05:00
Scott Rigby 4c8a3faaa2
Fix import
Signed-off-by: Scott Rigby <scott@r6by.com>
2022-01-11 21:47:04 -05:00
Scott Rigby b6bf3905f3
Implement reusable GetTagMatchingVersionOrConstraint
Largely borrowed from (IndexFile).Get. However there is not currently a nice
way to make this code also usable to the repo package, as IndexFile depends on
a list of index Entries containing a nexted version.

We could refactor this later to somehow use the same shared function, but for
now keeping separate.

Signed-off-by: Scott Rigby <scott@r6by.com>
2022-01-11 21:47:04 -05:00
Andrew Block 4f62d3dc1b
Started work on 'helm pull'
Signed-off-by: Andrew Block <andy.block@gmail.com>
2022-01-11 21:47:03 -05:00
Andrew Block df98e18eb7
Working oci code without providing versions
Signed-off-by: Andrew Block <andy.block@gmail.com>
2022-01-11 21:47:03 -05:00
Andrew Block 0fae7f5008
Updated tag resolver logic
Signed-off-by: Andrew Block <andy.block@gmail.com>
2022-01-11 21:47:03 -05:00
Andrew Block 834a11db56
Added registryClient to resolver
Signed-off-by: Andrew Block <andy.block@gmail.com>
2022-01-11 21:47:03 -05:00
Scott Rigby e3f2fb4235
Add OCI tag verions to the Dependency object before Resolve. TODO: fix HTTP HTTPS error for local registries
Signed-off-by: Scott Rigby <scott@r6by.com>
2022-01-11 21:45:30 -05:00