Matt Farina
e711488970
Move pkg/release to pkg/release/v1 to support v3 charts
...
This is part of HIP 20 which provides a means to have v3 charts
that live alongside v2 charts while having breaking changes.
The plan is to have a different release object for v3 chart
instances for at least a couple reasons:
1. So that the chart object on the release can be fundamentally
different.
2. So that Helm v3 does not detect or try to work with instances
of charts whose apiVersion it does not know about.
Note: it is expected that Helm v3 usage will be used long after
the Helm project no longer supports it. 5 years after Helm v2
had reached end-of-life there was still usage of it.
Note: The release util package is separate from the versioned
elements as it is planned to use generics to handle multiple
release object versions.
Signed-off-by: Matt Farina <matt.farina@suse.com>
10 months ago
Matt Farina
35a8bd3a77
Merge pull request #30586 from mattfarina/chart-to-chart-v2
...
Move pkg/chart to pkg/chart/v2 to prepare for v3 charts
10 months ago
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>
10 months ago
Robert Sirchia
4da004e2dc
removing old apis
...
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
10 months ago
Matt Farina
bff495510d
Merge pull request #30571 from yardenshoham/exec-no-output
...
feat: error out when post-renderer produces no output
10 months ago
Matt Farina
18ca7c1002
Move pkg/releaseutil to pkg/release/util
...
The releaseutil package was originally designed to work against a
generated codebase from a protobuf in Helm v2. This is when Helm
used gRPC to communicate to a server side component named Tiller.
When Helm moved everything client side, this package remained and
it supported the release package.
This change moves releaseutil to be a sub-packge of release. This
is part of the change to support apiVersion v3 charts which is
documented in HIP 20
Signed-off-by: Matt Farina <matt.farina@suse.com>
10 months ago
Yarden Shoham
ab926212d9
Apply suggestions from code review
...
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
10 months ago
Felipe Santos
392ff93916
Fix flaky TestDedupeRepos ( #30576 )
...
Signed-off-by: Felipe Santos <felipecassiors@gmail.com>
10 months ago
Joe Julian
0fcd1d33b3
Merge pull request #11112 from felipecrs/filter-dup-repos
...
perf(dep-up): do not update the same repo multiple times
10 months ago
Yarden Shoham
f475f3e1fd
feat: error out when post-renderer produces no output
...
When the templating post-renderer produces no output, something went wrong so we error out.
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
10 months ago
Scott Rigby
2cda65d444
Merge pull request #10309 from Bez625/main
...
Add hook annotation to output hook logs to client on error
10 months ago
Matt Farina
1382a2894a
Merge pull request #30567 from mattfarina/chartutil-to-chart-util
...
Moving chartutil to chart/util
10 months ago
Robert Sirchia
8dd279271e
remove unused config.go
...
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
10 months ago
Matt Farina
5c0deec327
Moving chartutil to chart/util
...
chartutil was originally created to operate on protobufs which are
no longer part of Helm. The util package makes more sense to be
part of the chart package.
This change is part of the HIP 20 to create v3 charts and
explicitly call out v2 charts. The changes for this are in smaller
bite size changes.
Signed-off-by: Matt Farina <matt.farina@suse.com>
10 months ago
Chris Berry
e5bc21c56b
Refactor based on review comment
...
Signed-off-by: Chris Berry <bez625@gmail.com>
10 months ago
Chris Berry
9791767baa
Refactor based on review comment
...
Signed-off-by: Chris Berry <bez625@gmail.com>
10 months ago
Chris Berry
6d30fa5990
Add HookOutputFunc and generic yaml unmarshaller
...
Signed-off-by: Chris Berry <bez625@gmail.com>
10 months ago
Scott Rigby
52ac92fb69
clarify fix error message
...
Signed-off-by: Scott Rigby <scott@r6by.com>
10 months ago
Scott Rigby
e8a76bc3eb
fix err check
...
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Scott Rigby <scott@r6by.com>
10 months ago
Scott Rigby
3796c1f4a1
remove comments about previous functionality
...
Signed-off-by: Scott Rigby <scott@r6by.com>
10 months ago
Scott Rigby
f729b9ade0
add short circuit return
...
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Scott Rigby <scott@r6by.com>
10 months ago
Chris Berry
243cb2e21f
Update based on review comments
...
Signed-off-by: Chris Berry <bez625@gmail.com>
10 months ago
Chris Berry
3d4e679d9f
Update based on review comments
...
Signed-off-by: Chris Berry <bez625@gmail.com>
10 months ago
Chris Berry
a55a477069
Fix lint
...
Signed-off-by: Chris Berry <bez625@gmail.com>
10 months ago
Chris
3964f84ac8
Tidy up imports
...
Signed-off-by: Chris <bez625@gmail.com>
10 months ago
Chris Berry
cde407b7d1
Add hook annotations to output pod logs to client on success and fail
...
Signed-off-by: Chris Berry <bez625@gmail.com>
10 months ago
George Jenkins
a780fa60ed
Merge pull request #13655 from LuBingtan/dev
...
feat: support multi-document values files
10 months ago
Felipe Santos
b1fd239167
Fix tests failing after removing repo normalization
...
Signed-off-by: Felipe Santos <felipecassiors@gmail.com>
10 months ago
Felipe Santos
ecb5a2c9dd
Fix variable name for linter
...
And restore trimSuffix instead of trimRight, which was a mistake.
Signed-off-by: Felipe Santos <felipecassiors@gmail.com>
10 months ago
Felipe Santos
281ccb0835
Do not store the normalized chart url
...
Signed-off-by: Felipe Santos <felipecassiors@gmail.com>
10 months ago
Felipe Santos
bb6314adef
Do not reassign repos variable
...
Signed-off-by: Felipe Santos <felipecassiors@gmail.com>
10 months ago
Felipe Santos
44d53e7d49
Merge branch 'main' of https://github.com/helm/helm into filter-dup-repos
10 months ago
Robert Sirchia
8207fafe13
fixing error handling from a previous PR
...
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
10 months ago
lubingtan
ef5614364b
fix: replace mergeMaps call with loader.MergeMaps in MergeValues function
...
Signed-off-by: lubingtan <bingtanlu@gmail.com>
10 months ago
lubingtan
91cd72d0e4
fix: improve LoadValues function documentation
...
Signed-off-by: lubingtan <bingtanlu@gmail.com>
10 months ago
lubingtan
fb7221bc9a
fix: add doc for func MergeMaps
...
Signed-off-by: lubingtan <bingtanlu@gmail.com>
10 months ago
lubingtan
3d84e00ce7
fix: use Reader interface as the input of LoadValues and enhance UT of LoadValues
...
Signed-off-by: lubingtan <bingtanlu@gmail.com>
10 months ago
lubingtan
92087f6e33
feat: support multi-document values files for default chart values
...
Signed-off-by: lubingtan <bingtanlu@gmail.com>
10 months ago
lubingtan
0d36cb664a
feat: support multi-document values files
...
Signed-off-by: lubingtan <bingtanlu@gmail.com>
10 months ago
Matt Farina
8edc3ac024
Merge pull request #13471 from wangjingcun/main
...
Use a more direct and less error-prone return value
10 months ago
Matt Farina
2603390c2e
Merge pull request #30470 from gjenkins8/cleanup_repotest_server
...
Cleanup `repotest.Server` constructors
10 months ago
Robert Sirchia
9408978517
Merge pull request #30294 from Zhanweelee/supports-json-arguments
...
Supports json arguments
10 months ago
hugehope
001d2978b6
refactor: using slices.Contains to simplify the code
...
Signed-off-by: hugehope <cmm7@sina.cn>
10 months ago
Felipe Santos
f692751a46
Merge branch 'main' of https://github.com/helm/helm into filter-dup-repos
10 months ago
wangjingcun
8b8cc94822
Use a more direct and less error-prone return value
...
Signed-off-by: wangjingcun <wangjingcun@aliyun.com>
11 months ago
Jonathan
37020c32fa
Update pkg/cli/values/options.go
...
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Jonathan <zhanweelee@gmail.com>
11 months ago
George Jenkins
234d171da5
Cleanup repotest Server constructors
...
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
11 months ago
Zhanwei Li
274d43c10d
feat: Enhance JSON value parsing in Helm CLI
...
- Add support for parsing full JSON objects with `--set-json`
- Update documentation to clarify JSON value input formats
- Improve test coverage for value parsing scenarios
- Modify `MergeValues` to handle both key=value and JSON object formats
Signed-off-by: Zhanwei Li <zhanweelee@gmail.com>
11 months ago
George Jenkins
3253059438
Merge pull request #13535 from helm/refactor_tlsutil
...
refactor: tlsutil use options pattern
11 months ago
George Jenkins
2d0091c278
Merge pull request #13665 from gjenkins8/rm_WaitAndGetCompletedPodPhase
...
chore: Remove unused `WaitAndGetCompletedPodPhase`
11 months ago