Skip to content

Fix failing pipelines and update codebase to go 1.24 #945

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 25, 2025

Conversation

mkubaczyk
Copy link
Owner

@mkubaczyk mkubaczyk commented Mar 25, 2025

This should address failing builds from recent days - some packages required golang >= 1.23. I went a bit further and decided it's worth updating straight to 1.24.x and with that I also updated all the dependencies.

Download url for kubectl changed, I could not get version 1.32.x from the previous one, so I followed the official docs for the curl installation method.

Even though tests are fine now, I'd appreciate running the build against existing clusters just to confirm everything is fine.

@mkubaczyk mkubaczyk marked this pull request as ready for review March 25, 2025 21:30
@mkubaczyk mkubaczyk requested a review from luisdavim March 25, 2025 21:30
@mkubaczyk mkubaczyk changed the title Update codebase to go 1.24 Fix failing pipelines and update codebase to go 1.24 Mar 25, 2025
Copy link
Collaborator

@luisdavim luisdavim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@luisdavim luisdavim merged commit 6def210 into master Mar 25, 2025
1 check passed
@luisdavim luisdavim deleted the feature/go-1-24-support branch March 25, 2025 21:40
rvbcia pushed a commit to rvbcia/helmsman that referenced this pull request Apr 1, 2025
* Update codebase to go 1.24

* Update kubectl download url in Dockerfile
luisdavim pushed a commit that referenced this pull request Apr 13, 2025
* Add --verify flag to helm commands

- Introduced a new --verify flag to the command-line interface in Helmsman.
- Updated the helmCmd function in internal/app/helm_helpers.go to append the --verify flag to helm commands when specified.
- Modified cmd/helmsman/main.go to handle the --verify flag.
- Added logic to set and use the verify flag in internal/app/main.go.

This change allows users to verify the downloaded charts using the --verify flag during Helmsman operations.

* Add --verify flag to helm commands

- Introduced a new --verify flag to the command-line interface in Helmsman.
- Updated the helmCmd function in internal/app/helm_helpers.go to append the --verify flag to helm commands when specified.
- Modified internal/app/cli.go to define and parse the --verify flag.
- Modified internal/app/main.go to handle the --verify flag and set it in helm_helpers.

This change allows users to verify the downloaded charts using the --verify flag during Helmsman operations.

* Fix --verify flag usage for helm commands

- Updated the helmCmd function in internal/app/helm_helpers.go to only append the --verify flag to specific Helm commands (install, upgrade, pull).
- Ensured that the --verify flag is not added to commands like helm version, which do not support it.

This change ensures that the --verify flag is only used with appropriate Helm commands.

* Update cli_test.go

Added tests

* Add documentation for the --verify flag

* Add documentation for the --verify flag

* Run go fmt

* Fix failing pipelines and update codebase to go 1.24 (#945)

* Update codebase to go 1.24

* Update kubectl download url in Dockerfile

* Release v3.18.0

* Change global variable to struct

* Refactor: Align `flags.verify` handling with existing patterns

- Updated `flags.verify` to be set using the `SetVerifyFlag` method in the `HelmHelper` struct.
- Removed any direct handling of `flags.verify` outside of the `HelmHelper` instance.
- Ensured consistency with the existing pattern for flag handling in the `Main` function.
- Improved code readability and maintainability by avoiding global variable usage.

* Run go fmt

* Refactor: Simplify `verifyFlag` handling in `HelmHelper` and `Main`

- Removed the `SetVerifyFlag` method from `HelmHelper` as it was unnecessary.
- Updated `Main` to directly set the `verifyFlag` field in the `HelmHelper` instance.
- Simplified the code by avoiding over-engineering and aligning with a more direct approach.

* Removed unnecessary comments, including those in Polish, for a cleaner codebase.

---------

Co-authored-by: Mateusz Kubaczyk <[email protected]>
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.

2 participants