Commit graph

20 commits

Author SHA1 Message Date
George Jenkins
8ba181c343 Run test OCI registry localhost
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-05-16 17:59:07 -07:00
Matthieu MOREL
77a267dacf chore: enable usestdlibvars linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-04-27 22:44:46 +02:00
Benoit Tigeot
a6d0335bbb
Use fmt.Fprintf(...) instead of ...
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-14 10:49:49 +02: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
Terry Howe
5a7046b9bf chore(oci): upgrade to ORAS v2
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
Co-authored-by: Zoran Regvart <zoran@regvart.com>
2025-02-02 07:28:41 -07: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
Evans Mungai
bdaa93b969
Ensure test fails without causing panic
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2024-10-22 18:50:23 +01:00
Evans Mungai
3c4d0bb061
Fix failing tests
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2024-10-22 18:38:58 +01:00
Andrew Block
0a69a0dea6
Modified how created annotation is populated based on package creation time
Signed-off-by: Andrew Block <andy.block@gmail.com>
2024-03-22 06:34:08 -05:00
Antonio Gamez Diaz
ad6f45819a
Merge branch 'main'
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>

Conflicts:
	pkg/registry/client.go
	pkg/registry/utils_test.go
2023-08-09 11:38:39 +02:00
Scott Rigby
7d190be0d0
Merge pull request #12128 from aryan9600/plain-http
oci: Add flag --plain-http to enable working with HTTP registries
2023-08-01 14:32:06 -04:00
Andrew Block
c4870d990c
Add created OCI annotation
Signed-off-by: Andrew Block <andy.block@gmail.com>
2023-07-02 07:21:15 -05:00
Sanskar Jaiswal
6defb96dac
oci: add tests for plain HTTP and insecure HTTPS registries
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2023-06-14 23:53:33 +05:30
Antonio Gamez Diaz
770c51ef0a
Add ClientOptResolver to test util file
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
2023-05-12 11:45:51 +02:00
Andrew Block
f900e9f1b1
Attach annotations to OCI artifacts
Signed-off-by: Andrew Block <andy.block@gmail.com>
2023-04-29 08:10:04 -05:00
Matt Farina
046646c944
Handle failed DNS case for Go 1.20+
Go 1.20 introduced DNS/CNAME handling changes. This can cause an
IP address represented in hex, oct, etc to be looked up as DNS and
fail. This change introduces a mock DNS resolver.

Note, with the mock resolver, we don't need to use 0x7f000001 any
longer. Keeping because it was already there.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2023-03-23 13:22:07 -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
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
Soule BA
b0ecb21056
Enable custom certificates option for OCI
If implemented, users will be able to use custom certificates and CA to
while interacting with OCI registries.

Signed-off-by: Soule BA <bah.soule@gmail.com>
2023-03-03 07:33:17 -06:00