Skip to content

Conversation

@juev
Copy link
Contributor

@juev juev commented Aug 20, 2025

Overview

Trying to use nelm as a replacement for helm

What this PR does / why we need it

These are improvements to the existing PR #594

ilya-lesikov and others added 30 commits August 20, 2025 15:32
Signed-off-by: Ilya Lesikov <[email protected]>
Signed-off-by: Ilya Lesikov <[email protected]>
Signed-off-by: Evsyukov Denis <[email protected]>
… from release annotations

Signed-off-by: Evsyukov Denis <[email protected]>
…e management and label handling

Signed-off-by: Evsyukov Denis <[email protected]>
… release management

- Introduced NelmActions interface for better abstraction of release operations.
- Refactored NelmClient to utilize the new interface for actions like ReleaseGet, ReleaseInstall, and others.
- Updated tests to accommodate the new structure and ensure functionality remains intact.

Signed-off-by: Evsyukov Denis <[email protected]>
…s purpose and behavior

Signed-off-by: Evsyukov Denis <[email protected]>
…d code organization

- Added missing import for utils in nelm_test.go.
- Changed map types from `map[string]interface{}` to `map[string]any` for better type safety.
- Removed unused test client creation functions in nelm_test.go.
- Improved release names handling in ListReleasesNames method in nelm.go.

Signed-off-by: Evsyukov Denis <[email protected]>
- Updated logging to include chart name when release name is empty, improving clarity in logs.

Signed-off-by: Evsyukov Denis <[email protected]>
…easesNames method

- Simplified ListReleasesNames by removing the check for empty release names, as it is no longer needed.

Signed-off-by: Evsyukov Denis <[email protected]>
- Replaced string concatenation with strings.Builder for improved performance in the Render method of NelmClient.

Signed-off-by: Evsyukov Denis <[email protected]>
- Updated NewNelmClient to eliminate the actions parameter, defaulting to DefaultNelmActions.
- Adjusted tests in nelm_test.go to set actions after client creation for consistency.

Signed-off-by: Evsyukov Denis <[email protected]>
- Changed nelmLog.Default to nelmLog.DefaultNull in NewNelmClient for improved logging behavior.

Signed-off-by: Evsyukov Denis <[email protected]>
- Updated InitHelmClientFactory to initialize Nelm client when USE_NELM environment variable is set.
- Enhanced tests to verify detection of Nelm client and its initialization.

Signed-off-by: Evsyukov Denis <[email protected]>
Signed-off-by: Pavel Okhlopkov <[email protected]>
Signed-off-by: Pavel Okhlopkov <[email protected]>
Signed-off-by: Pavel Okhlopkov <[email protected]>
Signed-off-by: Pavel Okhlopkov <[email protected]>
Signed-off-by: Pavel Okhlopkov <[email protected]>
Signed-off-by: Pavel Okhlopkov <[email protected]>
Signed-off-by: Pavel Okhlopkov <[email protected]>
Signed-off-by: Pavel Okhlopkov <[email protected]>
Signed-off-by: Pavel Okhlopkov <[email protected]>
ilya-lesikov and others added 22 commits August 20, 2025 15:32
Signed-off-by: Ilya Lesikov <[email protected]>
Signed-off-by: Ilya Lesikov <[email protected]>
Signed-off-by: Ilya Lesikov <[email protected]>
Signed-off-by: Ilya Lesikov <[email protected]>
Signed-off-by: Ilya Lesikov <[email protected]>
Signed-off-by: Ilya Lesikov <[email protected]>
Signed-off-by: Ilya Lesikov <[email protected]>
Signed-off-by: Ilya Lesikov <[email protected]>
Signed-off-by: Ilya Lesikov <[email protected]>
Signed-off-by: Evsyukov Denis <[email protected]>
Signed-off-by: Pavel Okhlopkov <[email protected]>
Signed-off-by: Ilya Lesikov <[email protected]>
Signed-off-by: Evsyukov Denis <[email protected]>
…ion only in release metadata

Signed-off-by: Evsyukov Denis <[email protected]>
@juev juev self-assigned this Aug 20, 2025
@juev juev added enhancement New feature or request go Pull requests that update Go code labels Aug 20, 2025
@juev juev changed the title feat: deployment backend prototype based on Nelm feat: deployment backend prototype based on Nelm 2 Aug 20, 2025
@ldmonster ldmonster closed this Sep 10, 2025
@ldmonster ldmonster deleted the feature/nelm-backend-prototype-rewrite-2 branch September 16, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants