Commit graph

238 commits

Author SHA1 Message Date
Benoit Tigeot
e7eedae97c
Use the logger with proper handling of dynamic debug on 2 locations
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-10 16:02:05 +02:00
Benoit Tigeot
cbaac7652d
Call slog directly instead of using a wrapper
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-10 15:35:36 +02:00
Benoit Tigeot
83a5a14826
Properly discard by default logs
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 16:47:26 +02:00
Benoit Tigeot
b2380720eb
Migrate to pure slog without a custom wrapper
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 16:46:08 +02:00
Benoit Tigeot
947658a96e
Explain why we ignore the timestamp
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:36:54 +02:00
Benoit Tigeot
15de13f9d2
Fix linting issue and temporary removing logging in test acion
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:36:54 +02:00
Benoit Tigeot
83cdffe4ae
Migrate to a dedicated internal package for slog adapter + migrate more
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:36:36 +02:00
Austin Abro
8efd428e5d
switch back to k8s rest mapper
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-03-25 14:10:31 +00:00
Austin Abro
83266254f0
merge
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-03-25 14:01:28 +00:00
Austin Abro
600947b32e
client->restmapper
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-03-07 14:27:09 +00:00
Austin Abro
ddc7baaaca
copyright things
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-03-04 23:17:40 +00:00
Austin Abro
3a296aacad
rest mapper
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-03-04 23:15:02 +00:00
Austin Abro
24dc643822
restmapper
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-03-04 22:56:11 +00:00
Austin Abro
8d964588cd
Update internal/statusreaders/job_status_reader.go
Co-authored-by: Scott Rigby <scott@r6by.com>
Signed-off-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
2025-03-04 17:47:25 -05:00
Austin Abro
5ecca2ed14
Apply suggestions from code review
Co-authored-by: Scott Rigby <scott@r6by.com>
Signed-off-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
2025-03-03 11:53:00 -05:00
Robert Sirchia
848c134e0c
fixing error messages
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2025-02-28 16:14:48 -05:00
Robert Sirchia
1ad79a2bb7
converting inline log to slog
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2025-02-27 14:21:57 -05:00
Austin Abro
09faaac273
merge
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-02-26 13:18:21 +00:00
Matt Farina
61d3eca55c
Move pkg/chart to pkg/chart/v2 to prepare for v3 charts
This change moves the code, updates the import locations, and
adds a doc.go file to document what the v2 package is for.

This is part of HIP 20 for v3 charts

Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-02-25 15:20:44 -05:00
Austin Abro
f866409c50
move statusreaders to it's own package
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-02-10 15:13:18 +00:00
George Jenkins
3253059438
Merge pull request #13535 from helm/refactor_tlsutil
refactor: tlsutil use options pattern
2025-02-05 13:23:50 -08:00
George Jenkins
415c7e10fd
Merge pull request #13516 from TerryHowe/new-lint
chore: fix problems with latest lint
2025-01-23 18:30:23 -08:00
Matt Farina
27bcda42dd
Updating the internal version to v4
Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-01-07 11:32:44 -05: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
George Jenkins
e3e84343d2 refactor: tlsutil use options pattern
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2024-12-14 21:32:45 -08:00
Terry Howe
569f62e58b chore: fix problems with latest lint
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2024-12-10 10:40:37 -07: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