Simon Bouchard
422ac1ecef
Apply suggestions from Copilot code review
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-09-19 20:19:41 -04:00
Simon Bouchard
32afe9de42
Merge branch 'main' into update-strategy-feature
2025-09-19 14:41:54 -04:00
Ruslan
d646b3cbd4
feat: Implement caching for pulling OCI charts ( #2171 )
...
Signed-off-by: Ruslan Khizhnyak <mustdiechik@gmail.com>
Co-authored-by: Ruslan Khizhnyak <rkhizhnyak@ptsecurity.com>
2025-09-13 12:49:03 +08:00
yxxhero
3f5d4110f6
build: update helm-diff plugin to v3.13.0 ( #2189 )
2025-09-13 10:08:15 +08:00
yxxhero
c443baa103
build: update Helm to v3.19.0 across all components ( #2187 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-09-12 13:58:08 -04:00
Copilot
3728b6f647
Remove deprecated --wait-retries flag support to fix Helm compatibility error ( #2179 )
...
* Remove --wait-retries flag support and update documentation
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* Fix unused helm parameter in appendWaitFlags function
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
2025-09-11 13:57:28 +08:00
Nick Neisen
f708d06200
Fix panic when helm isn't installed ( #2169 )
...
Return error instead of panic
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
2025-09-09 07:15:46 +08:00
Copilot
a9594eb158
Fix error propagation in helmfile diff when Kubernetes is unreachable ( #2149 )
...
* Fix error propagation in helmfile diff when Kubernetes is unreachable
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* Fix golangci-lint issue: replace custom contains function with strings.Contains
Co-authored-by: zhaque44 <20215376+zhaque44@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
Co-authored-by: zhaque44 <20215376+zhaque44@users.noreply.github.com>
2025-09-02 12:51:17 -04:00
Copilot
d37f937c9e
Fix enableDNS flag missing in diff command and refactor duplicate logic ( #2147 )
...
* Initial plan
* Add enableDNS flag support to diff command
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* Extract EnableDNS flag logic into reusable function
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
2025-08-27 14:32:17 +08:00
Copilot
135ff63aa3
Add missing --timeout flag to helmfile sync command with documentation ( #2148 )
...
* Initial plan
* Implement --timeout flag for helmfile sync command
- Add Timeout field to SyncOptions struct in pkg/config/sync.go
- Add --timeout flag to sync command in cmd/sync.go
- Add Timeout field to SyncOpts struct in pkg/state/state.go
- Modify timeoutFlags() function to prioritize CLI timeout over release and default configs
- Add test case to verify CLI timeout overrides other timeout settings
- Follow same pattern as existing --wait and --wait-for-jobs flags
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* Fix lint issues: format test struct fields properly
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* Update docs: Add --timeout flag documentation for helmfile sync command
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
2025-08-27 14:32:02 +08:00
yxxhero
a05b93de5c
build: update helm to v3.18.6 ( #2144 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-08-22 14:10:01 +08:00
Copilot
7f18858182
Fix parseHelmVersion to handle helm versions without 'v' prefix ( #2132 )
...
* Initial plan
* Fix panic in helmfile init when parsing invalid helm versions
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* Fix parseHelmVersion to handle versions without v prefix
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
* Simplify parseHelmVersion function to be more readable
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
2025-08-14 21:11:09 +08:00
yxxhero
8c123dcdda
refactor(state): extract getMissingFileHandler method for clarity ( #2133 )
...
* refactor(state): extract getMissingFileHandler method for clarity
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-08-14 21:10:44 +08:00
yxxhero
444275281f
Update recommended Helm versions in init.go and run.sh ( #2129 )
...
- Bump HelmDiffRecommendedVersion from v3.12.3 to v3.12.5 in pkg/app/init.go
- Bump default HELM_DIFF_VERSION from 3.12.3 to 3.12.5 in test/integration/run.sh
- Update HelmRecommendedVersion from v3.18.4 to v3.18.5 in pkg/app/init.go
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-08-14 08:41:43 +08:00
Simon Bouchard
eca333c0eb
Make sure to add --wait when deleting a release to be reinstalled due to reinstallIfForbidden
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-08-05 11:24:26 -04:00
Simon Bouchard
94de61b951
Display affected releases that were reinstalled
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-08-02 16:47:09 -04:00
Simon Bouchard
e3c0d3b770
Removed 'reinstall' update strategy option to only have reinstallIfForbidden, cleanup of pre-sync changes, adapted unit tests
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-08-02 16:21:27 -04:00
Simon Bouchard
512a0fc5af
Merge branch 'main' into update-strategy-feature
2025-08-01 13:19:12 -04:00
yxxhero
959aae5791
refactor(yaml): switch yaml library import paths from gopkg.in to go.yaml.in ( #2114 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-08-01 11:28:39 +08:00
Jess
9a88372449
Allow caching of remote files to be disabled ( #2112 )
...
* Allow caching of remote files to be disabled
Make it possible to automatically update the cache of remote
resources by disabling the caching of those resources using a query
string parameter (`cache=false`).
Signed-off-by: Jess <jess@ros.io>
* Fix test that broke
Because query parameters are being re-encoded, = is being encoded to %3D.
Signed-off-by: Jess <jess@ros.io>
* Add test for disabling caching of remote resources
Signed-off-by: Jess <jess@ros.io>
* Include example usage in docs
Signed-off-by: Jess <jess@ros.io>
---------
Signed-off-by: Jess <jess@ros.io>
2025-07-31 13:38:36 +08:00
Simon Bouchard
5d100dfbef
Updated unit test
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-07-29 19:50:16 -04:00
Simon Bouchard
9a6aa9e52b
Merge branch 'update-strategy-feature' of https://github.com/simbou2000/helmfile into update-strategy-feature
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-07-29 19:36:45 -04:00
Simon Bouchard
88d58363e8
Merge branch 'main' into update-strategy-feature
2025-07-29 19:14:59 -04:00
Simon Bouchard
c10bb1c4e0
Add validation of updateStrategy parameter and unit test
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-07-29 18:02:20 -04:00
yxxhero
a76bec234c
refactor(filesystem): add CopyDir method and optimize Fetch function ( #2111 )
...
* refactor(filesystem): add CopyDir method and optimize Fetch function
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix(state): conditionally prepare charts for local helmfile command
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix(state): conditionally prepare charts for local helmfile command
Signed-off-by: yxxhero <aiopsclub@163.com>
* refactor(state): optimize chart path generation and update dependencies
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix(test): update path in fetch-forl-local-chart test
Signed-off-by: yxxhero <aiopsclub@163.com>
* add more test cases
Signed-off-by: yxxhero <aiopsclub@163.com>
---------
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-07-28 16:10:25 -04:00
yxxhero
b0911ab1a2
feat(state): add missingFileHandlerConfig and related logic ( #2105 )
...
* feat(state): add missingFileHandlerConfig and related logic
Signed-off-by: yxxhero <aiopsclub@163.com>
* feat(state): add missingFileHandlerConfig and related logic
Signed-off-by: yxxhero <aiopsclub@163.com>
---------
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-07-21 19:15:51 -04:00
Simon Bouchard
ae87c7a456
Merge branch 'main' into update-strategy-feature
2025-07-21 15:14:03 -04:00
yxxhero
4a3f923b1a
fix: update Helm version to v3.17.4 in CI and init.go ( #2102 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-07-17 19:01:31 -04:00
yxxhero
687159a65b
build: update Helm and plugin versions to v3.18.4 and v3.12.3 ( #2093 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-07-09 18:13:21 +08:00
Simske
d84243992e
Expose release version as .Release.ChartVersion for templating ( #2080 )
2025-06-17 19:41:42 +08:00
yxxhero
c03f86de0f
build: update Helm to v3.18.3 and related dependencies ( #2082 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-06-17 15:09:42 +08:00
ProbstDJakob
8a57db5ffd
fix: `TestToYaml` not working with 32-bit architectures ( #2075 )
...
Signed-off-by: Jakob Probst <git@jakobprobst.de>
2025-06-12 17:15:48 +08:00
yxxhero
131e3f3f04
fix: update helm-diff to version 3.12.2 in CI and Dockerfiles ( #2073 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-06-11 21:18:31 +08:00
anontrex
3df6442bd1
fix-insecure-flag ( #2072 )
...
Signed-off-by: tcase44 <toblerone.tc@gmail.com>
Co-authored-by: tcase44 <toblerone.tc@gmail.com>
2025-06-09 17:08:10 +08:00
yxxhero
74985fc54c
build: update Helm to v3.18.2 and adjust related configurations ( #2064 )
...
* build: update Helm to v3.18.2 and adjust related configurations
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
---------
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-06-04 21:33:00 +08:00
yxxhero
fe1e51e5ef
build: update Helm and plugin versions in CI and Dockerfiles ( #2059 )
...
* build: update Helm and plugin versions in CI and Dockerfiles
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-05-30 11:45:28 +08:00
yxxhero
e197a90597
build(helm) update to v3.18.0 ( #2044 )
...
* build(helm) update to v3.18.0
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-05-21 16:57:36 +08:00
yxxhero
b52ca9ae04
refactor(yaml): upgrade from gopkg.in/yaml.v2 to v3 ( #2039 )
...
* refactor(yaml): upgrade from gopkg.in/yaml.v2 to v3
Signed-off-by: yxxhero <aiopsclub@163.com>
* refactor(yaml): enhance yaml encoding with consistent formatting and quotes
Signed-off-by: yxxhero <aiopsclub@163.com>
* optimize code
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix more issues
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
---------
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-05-15 10:21:37 -04:00
yxxhero
867bef0f03
feat(yaml): add JSON style encoding option to NewEncoder ( #2038 )
2025-05-13 18:45:22 +08:00
yxxhero
844726b09b
feat(tmpl): enhance ToYaml test with multiple scenarios ( #2031 )
...
* feat(tmpl): enhance ToYaml test with multiple scenarios
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-05-09 11:56:54 +08:00
yxxhero
e81af4058c
chore: remove test data files ( #2026 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-05-06 20:31:12 +08:00
SADIK KUZU
7a3bc59ed1
chore: fix typo in create_test.go ( #2025 )
...
Signed-off-by: SADIK KUZU <sadikkuzu@hotmail.com>
2025-05-05 22:39:20 +08:00
Simon Bouchard
767cdb9497
Merge branch 'main' into update-strategy-feature
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-04-28 10:25:40 -04:00
yxxhero
c3864a45d3
feat: add --take-ownership flag to helm diff and related config ( #1992 )
...
* feat: add --take-ownership flag to helm diff and related config
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix: nil issue
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix more issue
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix more issues
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* add more tests
Signed-off-by: yxxhero <aiopsclub@163.com>
---------
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-04-27 12:57:41 -04:00
Simon Bouchard
aaef5c98f8
Resolve linter issue due to cognitive complexity
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-04-25 15:51:50 -04:00
Simon Bouchard
0e23aefe10
Fix unit tests related to the new updateStrategy feature
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-04-24 19:22:36 -04:00
ProbstDJakob
0a31423005
chore: support parsing any type with `fromYaml` ( #2017 )
...
Signed-off-by: Jakob Probst <git@jakobprobst.de>
2025-04-25 06:56:01 +08:00
Simon Bouchard
98eb14c024
Fix unit tests related to the new updateStrategy feature
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-04-24 18:11:02 -04:00
Simon Bouchard
ec70bc5b2d
feat: Add updateStrategy option in the state file with 'reinstall'/'reinstallIfForbidden' choices to uninstall and apply the specific release(s) (if forbidden to update)
...
Signed-off-by: Simon Bouchard <sbouchard@rbbn.com>
2025-04-24 18:10:36 -04:00
Adam Blasko
9bf51cb011
Feat: setting reuseValues flag in release ( #2004 )
...
* Feat: reuseValues in release
Adding properties to set reuseValues flag on release-level.
Signed-off-by: Adam Blasko <adam.blasko1@gmail.com>
* feat: fixing tests
Most of the tests had issues with flag order, which changed due to moving the value control flags out of the "common flags" for diff
Signed-off-by: Adam Blasko <adam.blasko1@gmail.com>
* fix: fixing lint issue
Signed-off-by: Adam Blasko <adam.blasko1@gmail.com>
---------
Signed-off-by: Adam Blasko <adam.blasko1@gmail.com>
2025-04-23 07:53:29 +08:00