Commit graph

491 commits

Author SHA1 Message Date
Evans Mungai
e2df39fc0b
Remove refactorring changes from coalesce_test.go
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2026-02-09 16:35:35 +01:00
Evans Mungai
97affe067a
Fix import
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2026-02-09 16:35:26 +01:00
Evans Mungai
c264166ec6
Update pkg/chart/common/util/coalesce_test.go
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2026-02-09 16:35:17 +01:00
Evans Mungai
d409df87ff
Fix lint warning
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2026-02-09 16:35:04 +01:00
Evans Mungai
6fdd1017ce
Preserve nil values in chart already
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2026-02-09 16:34:50 +01:00
Evans Mungai
b13743c8d4
fix(values): preserve nil values when chart default is empty map
Only delete nil user values when overriding a non-nil chart default.
When chart has empty map or no default for a key, preserve user's nil.

| Scenario | Result |
|----------|--------|
| User sets `baz: ~`, chart has `baz: "value"` | Key deleted |
| User sets `baz: ~`, chart has empty map `{}` | Nil preserved |
| User sets `baz: ~`, chart has `baz: ~` | Nil preserved |

Fixes #31643

Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2026-02-09 16:33:38 +01:00
Scott Rigby
f6e17f6735
bump version to v3.20
Signed-off-by: Scott Rigby <scott@r6by.com>
2026-01-12 15:04:26 -05:00
Terry Howe
bfc4534772
Merge pull request #31119 from bpfoster/fix-subchart-value-removal
Some checks failed
build-test / build (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
golangci-lint / golangci-lint (push) Has been cancelled
fix: null merge
2025-12-13 08:48:29 -07:00
Benoit Tigeot
3f0da15437
jsonschema: warn and ignore unresolved URN $ref to match v3.18.4
- v3.18.5 switched jsonschema and began resolving external $ref
  at compile-time, exposing missing urn handling
  (“no URLLoader registered for urn:…”).
- Add urn scheme loader and pluggable URNResolver. If unresolved, log
  a warning and return a permissive true schema (back-compat).
- Avoid having a duplicated warn logs when we Load the schema twice.

Note: external URNs need AddResource/Resolver (the CLI uses --map for
this).

Close: #31170

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-10-30 16:04:41 +01:00
Matt Farina
73c269f31d
Merge pull request #31257 from benoittgt/fix-31202-panic-backport
Some checks failed
build-test / build (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
golangci-lint / golangci-lint (push) Has been cancelled
[backport] Avoid panic in helm.sh/helm/v3/pkg/chartutil.ValidateAgainstSchema
2025-10-22 15:50:13 -04:00
Benoit Tigeot
2fe49f99ce
Avoid "panic: interface conversion: interface {} is nil"
Closes: #31202

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-09-08 10:52:42 +02:00
Scott Rigby
c3610abd2d
bump version to v3.19.0
Signed-off-by: Scott Rigby <scott@r6by.com>
(cherry picked from commit 3d8990f083)
2025-09-04 23:55:37 -04:00
Isaiah Lewis
b278020311
fix(helm-lint): fmt
Signed-off-by: Isaiah Lewis <isaiah@roof12.com>
(cherry picked from commit 62e0c78ef8)
2025-08-19 15:50:31 -04:00
Isaiah Lewis
d33ac5e44b
fix(helm-lint): Add TLSClientConfig
Signed-off-by: Isaiah Lewis <isaiah@roof12.com>
(cherry picked from commit fb12b44493)
2025-08-19 15:50:12 -04:00
Isaiah Lewis
854370978e
fix(helm-lint): Add HTTP/HTTPS URL support for json schema references
Signed-off-by: Isaiah Lewis <isaiah@roof12.com>
(cherry picked from commit fa73b6743b)
2025-08-19 15:49:34 -04:00
Robert Sirchia
46806c8217
Merge branch 'dev-v3' into advisory-fix-1a
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2025-08-13 15:17:53 -04:00
Robert Sirchia
7977a48fb4
Merge commit from fork
fix for dev-v3
2025-08-13 15:10:00 -04:00
Ben Foster
f0b699eabb fix null merge
(cherry-picked from commit c1175a4106)

Signed-off-by: Ben Foster <bpfoster@gmail.com>
2025-08-07 13:42:18 -04:00
Matt Farina
f13afaacd6
fix Chart.yaml handling
Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-07-31 09:25:12 -04:00
Robert Sirchia
6d9509aadc
json schema fix
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2025-07-25 10:03:46 -04:00
Borys Hulii
807225ed62
fix: k8s version parsing to match original
Signed-off-by: Borys Hulii <borys.hulii@bitvavo.com>
2025-07-25 15:25:20 +02:00
Matt Farina
c5249c1f8d
Revert "fix (helm) : toToml` renders int as float [ backport to v3 ]"
This change has caused issues with numerous charts around things
unrelated to toml. This is because of functions like typeIs/typeOf
being used and acted upon.

The change caused a significant regression.

Closes #30880

Signed-off-by: Matt Farina <matt@mattfarina.com>
2025-05-20 16:17:23 -04:00
George Jenkins
b4e06a11d2
Merge pull request #30658 from helm/gjenkins/backport_12912
[v3 backport] feat: add httproute from gateway-api to create chart template
2025-05-06 20:51:07 -07:00
Robert Sirchia
94044595c7
bump version to v3.18.0
(cherry picked from commit 74c3d1dc0de0335f941362c80447871e7d6bc78e)
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2025-05-05 16:09:20 -04:00
Henrik Gerdes
bd1b67b082 feat: add httproute from gateway-api to create chart template
Adds the HTTPRoute from https://gateway-api.sigs.k8s.io/reference/spec/ to the example getting started chart.

Signed-off-by: Henrik Gerdes <hegerdes@outlook.de>
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
2025-03-12 10:27:53 -07:00
Matt Farina
e2c7986f30
Merge pull request #13534 from althmoha/dev-v3-12987
fix (helm) : toToml` renders int as float [ backport to v3 ]
2025-02-05 15:33:56 -05:00
George Jenkins
80f87ab636
Merge pull request #13654 from ryanhockstad/subchart-null
[backport] bugfix: Override subcharts with null values
2025-01-26 21:18:13 -08:00
Ryan Hockstad
326c1e3f67 add test for nullifying nested global value
Signed-off-by: Ryan Hockstad <ryanhockstad@gmail.com>
2025-01-17 07:29:48 -05:00
Matt Farina
fba9d08dce
Ensuring the file paths are clean prior to passing to securejoin
securejoin v0.4.0 made a possibly breaking change. Only clean paths
are safe to pass to SecureJoin or they could return an error or
have the wrong path. The details are in the release notes for v0.4.0.

This change ensures the paths are clean prior to passing to SecureJoin.

Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 35a9ead998)
2025-01-14 15:35:47 -05:00
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
Ryan Hockstad
ef2eb55283 Add test case for removing an entire object
Signed-off-by: Ryan Hockstad <ryanhockstad@gmail.com>
2025-01-02 22:19:19 -05:00
Scott Rigby
60fcce18d1 Tests for bugfix: Override subcharts with null values #12879
- Add consistency for null test in given values, parent chart, subchart, and
  sub-sub-chart
- Remove bar null test to keep consistent with boat=null at top level

Signed-off-by: Scott Rigby <scott@r6by.com>
2025-01-02 21:17:30 -05:00
dnskr
ba180a3b6a ref(create): don't render empty resource fields
Signed-off-by: Denis Krivenko <dnskrv88@gmail.com>
Signed-off-by: dnskr <dnskrv88@gmail.com>
2024-12-27 08:17:27 -08:00
Althaf M
0a6834fdf0 This commit fixes the issue where the yaml.Unmarshaller converts all int values into float64, this passes in option to decoder,
which enables conversion of int into .

Signed-off-by: Althaf M <althafm@outlook.com>
2024-12-14 23:19:01 +00:00
wangjingcun
e4062e7e00 fix: fix label name
Signed-off-by: wangjingcun <wangjingcun@aliyun.com>
2024-11-07 17:10:31 +08:00
wangjingcun
de9e138ec1 chore: fix some function names in comment
Signed-off-by: wangjingcun <wangjingcun@aliyun.com>
2024-10-24 18:26:22 +08:00
Jon Olsson
ca584648ee minor spelling fix
Signed-off-by: Jon Olsson <jon.olsson@sequitor.se>
2024-10-15 09:38:23 +02:00
Matt Farina
eecb848dcb
Merge pull request #13301 from NathanBaulch/typos
Fix typos
2024-09-30 14:55:21 +02:00
Matt Farina
d45439f2e9
Merge pull request #11923 from Bhargav-InfraCloud/helm-create-deprication-tests
test(create): Add test to check deprecated `apiVersion`s in resource templates created by `helm create`
2024-09-27 21:37:28 +02:00
Nathan Baulch
ef85fa7f2d
Grammar fixes
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
2024-09-14 10:30:31 +10:00
Nathan Baulch
ff9dd262e3
Fix typos
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
2024-09-14 10:29:56 +10:00
Rui Chen
ddead08eb8
fix: fix testchart lint errors
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-09-12 15:40:43 -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
Matt Farina
36ae5168bd
Merge pull request #13256 from robertsirc/issue-13229
Updating the inline documentation.
2024-08-28 12:56:38 -04:00
Andrew Block
a6f5844fb4
Merge pull request #13231 from dnskr/helm-create-drop-old-kubernetes-support
ref(create): drop old Kubernetes versions support in Ingress template
2024-08-24 19:16:57 -05:00
Robert Sirchia
b92cc927d1
fixing changes as per requested.
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-08-21 15:52:49 -04:00
Robert Sirchia
b98952fb01
Merge branch 'helm:main' into issue-13229 2024-08-21 15:30:21 -04:00
Robert Sirchia
e72978edcf
Updating the inline documentation.
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-08-16 15:26:48 -04:00
Scott Rigby
f0442777bb
Merge pull request #12743 from anessi/feat/skip-schema-validation
feat(helm): add --skip-schema-validation flag to helm 'install', 'uprade' and 'lint'
2024-08-12 14:28:52 -04:00
dnskr
f9ba3c568b ref(create): drop old Kubernetes versions support in Ingress template
Signed-off-by: Denis Krivenko <dnskrv88@gmail.com>
Signed-off-by: dnskr <dnskrv88@gmail.com>
2024-08-05 21:09:19 +02:00