Skip to content

feat: new major 2.0 release#576

Open
ilya-lesikov wants to merge 49 commits intomainfrom
2
Open

feat: new major 2.0 release#576
ilya-lesikov wants to merge 49 commits intomainfrom
2

Conversation

@ilya-lesikov
Copy link
Member

No description provided.

git-subtree-dir: pkg/helm
git-subtree-split: f03cc04caaa8f6d7c3e67cf918929150cf6f3f12
- Update forkPrefix from internal/helm to pkg/helm
- Remove --depth 1 from upstream clone (breaks subtree merge)
- Fix file stripping to recurse into all files, not just top-level dirs
- Only strip files that existed in previous upstream split (preserve new upstream files)
- Update lint, wormatter, test, and doctoc paths for internal/helm -> pkg/helm move

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
git-subtree-dir: pkg/helm
git-subtree-split: c94d381b03be117e7e57908edbf642104e00eb8f
…files

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
…ync task update

- Rewrite all helm.sh/helm/v4 imports → github.com/werf/nelm/pkg/helm (679 imports)
- Change package main → package helm in cmd/helm/
- Rename pkg/helm/internal/ → pkg/helm/intern/ + update all cross-references
- Fix go.mod/go.sum for Helm 4.1.3 dependencies
- Add exports.go compatibility shim (Settings, Init) to pkg/helm/cmd/helm/
- Update fork:helm:sync task for internal→intern rename and package main→helm

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
…ets, chartextender)

- T6: Create pkg/helm/pkg/werf/helmopts/ with HelmOptions, ChartLoadOptions, ChartType
- T7: Create pkg/helm/pkg/werf/file/ with ChartExtenderBufferedFile, ChartFileReader, ChartFileWriter
- T8: Create pkg/helm/pkg/werf/secrets/ with secrets loading, RuntimeData interface, werf_secret_file template func
- T9: Create pkg/helm/pkg/werf/chartextender/ with AutosetChartMetadata

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
- T10a: Add SplitManifestsToSlice to pkg/helm/pkg/release/v1/util/manifest.go
- T10b: Add HookManifestToHook to pkg/helm/pkg/release/v1/util/manifest_sorter.go
- T10c: Add ProcessDependenciesWithMerge and export-values pipeline to pkg/helm/pkg/chart/v2/util/dependencies.go

All additions marked with // WERF: comments

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
- Add RuntimeFiles, RuntimeDepsFiles, ExtraValues, SecretsRuntimeData to chart.Chart
- Add ExportValues to chart.Dependency for export-values directive support
- All additions marked with WERF: comments

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
…o engine

- Add HelmOptions field to Engine struct
- Register werf_secret_file, dump_debug, printf_debug, include_debug, tpl_debug template functions
- All additions marked with WERF: comments

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
…nd HelmOptions

- Add HelmOptions parameter to Load(), LoadDir(), LoadFile() with backward compatibility
- Integrate ChartFileReader for custom file I/O
- Support chart type switching (Bundle/Chart/Subchart/ChartStub)
- Set RuntimeFiles, RuntimeDepsFiles, ExtraValues on loaded charts
- Secrets loading via SecretsRuntimeData when available

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
…load chain

- Add HelmOptions and AllowMissingRepos fields to Manager struct
- Thread HelmOptions through Build(), Update(), resolve(), downloadAll(), safeMoveDeps()
- Add HelmOptions parameter to Resolver.Resolve()
- Update tests for new signatures

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
…oalesce, save)

- values/options.go: Add HelmOptions + ChartFileReader integration for value file loading
- coalesce.go: Add ExtraValues + decrypted secrets merging via makeValues()
- save.go: Add SaveIntoDir, RuntimeFiles saving support
- save_extended.go: New file with SaveIntoTar for archive writing

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
- Port LoadChartDependencies() with full hash-based caching
- NoChartLockWarning variable for caller compatibility
- Uses fmt.Errorf (not errors.Wrap) and os (not ioutil) per conventions

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
…ge paths

- Update chartutil → chart/common/util and chart/v2/util imports
- Update releaseutil → release/v1/util imports
- Remove helmtime dependency, use standard time package
- Update release/release_storage.go for Helm 4 storage API (interfaces)
- Update chart_render.go for new loader/engine/downloader APIs
- Adapt to Helm 4 Release struct changes (Releaser interface, etc.)
- Fix dependency downloader interface compatibility

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
- engine: verify debug/secrets template functions in FuncMap, Engine renders templates
- release/v1/util: verify SplitManifestsToSlice and HookManifestToHook
- chart/v2/util: verify ProcessDependenciesWithMerge callable and rejects nil vals
- All tests use //go:build ai_tests tag and TestAI_ prefix

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
The cleanup commit (72f50e0) incorrectly deleted pkg/helm/pkg/cmd/
which registers all Helm CLI subcommands (history, repo, dependency,
pull, push, package, registry). Without it, Init() returned a bare
cobra.Command causing panics when nelm tried to find subcommands.

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
…er APIs

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
This reverts commit 368ea7b.

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
This reverts commit d6280da.

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant