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
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
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
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
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
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
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
yxxhero
7624697b68
build: update Helm to v3.17.3 and update related Dockerfiles ( #1993 )
...
fix conflicts
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-04-11 10:13:22 -04:00
yxxhero
aa6af7c272
build: update Helm plugin versions in CI and Dockerfiles ( #1995 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-04-11 19:10:56 +08:00
yxxhero
eb32b6166e
fix(state): enhance error message for missing .gotmpl extension in helmfile v1 ( #1989 )
...
* fix(state): enhance error message for missing .gotmpl extension in helmfile
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-04-08 21:28:54 +08:00
André Arnqvist
c9a2e76200
fix: Check needs with context and namespace ( #1986 )
...
* fix: Check needs with context and namespace
Signed-off-by: André Arnqvist <andrearnqvist@gmail.com>
* fix: Ensure releases have overrides
Signed-off-by: André Arnqvist <andrearnqvist@gmail.com>
* fix: Run go fmt
Signed-off-by: André Arnqvist <andrearnqvist@gmail.com>
* fix: Add tests checking needs with same name in different namespaces
Signed-off-by: André Arnqvist <andrearnqvist@gmail.com>
* fix: Simplify setting overrides
Signed-off-by: André Arnqvist <andrearnqvist@gmail.com>
---------
Signed-off-by: André Arnqvist <andrearnqvist@gmail.com>
2025-04-07 21:57:02 +08:00
yxxhero
e4273d050e
feat: add labels for helm release ( #1046 )
...
feat: add labels for k8s resources
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-03-30 19:24:41 -04:00
dependabot[bot]
d26d909a5e
build(deps): bump golangci/golangci-lint-action from 6 to 7 ( #1975 )
...
* build(deps): bump golangci/golangci-lint-action from 6 to 7
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 6 to 7.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* refactor(.github/workflows/ci.yaml): update golangci-lint version to v2.0.2
Signed-off-by: yxxhero <aiopsclub@163.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: yxxhero <aiopsclub@163.com>
2025-03-28 07:52:06 +08:00
yxxhero
a1f2cb3877
build: update Helm to v3.17.2 and related dependencies ( #1965 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-03-17 10:51:10 -04:00
yxxhero
5d29f03782
Remove all v0.x references ( #1919 )
...
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* refactor(two_pass_renderer): remove unused imports and functions
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 tests
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 tests
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 tests
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 tests
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 tests
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 tests
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 tests
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 tests
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>
---------
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-03-08 07:43:21 -06:00
jayme-github
410d84bba5
Don't warn if this and the needed release set installed: false ( #1958 )
...
When the evaluated release has installed: false it's perfectly fine that
a needed release is installed: false as well.
fixes #1464
Signed-off-by: jayme-github <jayme-github@users.noreply.github.com>
2025-03-06 22:52:26 +08:00
yxxhero
489b6c9362
build: update golang version to 1.24 and golangci-lint to v1.64.5 ( #1949 )
...
* build: update golang version to 1.24 and golangci-lint to v1.64.5
Signed-off-by: yxxhero <aiopsclub@163.com>
* build: update golang version to 1.24 in Dockerfiles
Signed-off-by: yxxhero <aiopsclub@163.com>
* fix more issues
Signed-off-by: yxxhero <aiopsclub@163.com>
---------
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-02-28 12:10:16 +08:00
Eric Bailey
156a7576b5
feat: colorized DELETED ( #1944 )
...
feat: colorize DELETED
Signed-off-by: Eric Bailey <eric@ericb.me>
2025-02-19 12:30:02 +08:00
Aditya Menon
9b2710b826
Update vals package to v0.39.2 ( #1938 )
...
* Update vals package to v0.39.2
Signed-off-by: Aditya Menon <amenon@canarytechnologies.com>
* fix golangci lint file
Signed-off-by: Aditya Menon <amenon@canarytechnologies.com>
---------
Signed-off-by: Aditya Menon <amenon@canarytechnologies.com>
2025-02-18 12:59:01 +08:00
yxxhero
a89803521d
refactor(state): optimize HelmState flags handling ( #1937 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-02-15 12:17:44 +08:00
yxxhero
8b15c30cf2
docs: add skipSchemaValidation to index.md and update related structs ( #1935 )
...
* docs: add skipSchemaValidation to index.md and update related structs
Signed-off-by: yxxhero <aiopsclub@163.com>
* feat: add SkipSchemaValidation to config and state handling
Signed-off-by: yxxhero <aiopsclub@163.com>
---------
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-02-14 11:57:50 -05:00
Vince-Chenal
e33b4725ea
feat: inject cli state values (--state-values-set) into environment templating context ( #1917 )
...
* feat: inject cli state values (--state-values-set) into environment templating context
Signed-off-by: Vincent Chenal <vincent.chenal@protonmail.com>
* test: added envvals_loader unit test for environment values
Signed-off-by: Vincent Chenal <vincent.chenal@protonmail.com>
* test: added 'state values set cli args in environments' integration test
Signed-off-by: Vincent Chenal <vincent.chenal@protonmail.com>
* fix: merge environments before loadValuesEntries
Signed-off-by: Vincent Chenal <vincent.chenal@protonmail.com>
* fix: 'state values set cli args in environments' integration test
Signed-off-by: Vincent Chenal <vincent.chenal@protonmail.com>
---------
Signed-off-by: Vincent Chenal <vincent.chenal@protonmail.com>
2025-02-14 20:49:07 +08:00
yxxhero
9c380668ec
build: update Helm to v3.17.1 and related dependencies ( #1928 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-02-13 15:48:05 +08:00
Connor Hindley
2c38611acd
feat: Add support for --wait-retries flag. ( #1922 )
...
* feat: Add support for --wait-retries flag.
This change wires up waitRetries option to set the helm --wait-retries flag.
--wait-retries was added in helm 3.15.0 and makes waiting more robust to registry errors.
https://github.com/helm/helm/commit/fc74964
https://github.com/helm/helm/releases/tag/v3.15.0
Resolves #1522
Signed-off-by: Connor Hindley <connor.hindley@tanium.com>
2025-02-12 07:28:37 +08:00
yxxhero
63e2684ade
Revert "cleanup: remove all about v0.x" ( #1918 )
...
Revert "cleanup: remove all about v0.x (#1903 )"
This reverts commit d7bcd5e998 .
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-02-08 18:25:16 +08:00
yxxhero
d7bcd5e998
cleanup: remove all about v0.x ( #1903 )
...
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com>
* refactor(two_pass_renderer): remove unused imports and functions
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 tests
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 tests
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 tests
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 tests
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 tests
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 tests
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 tests
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 tests
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>
---------
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-02-05 13:50:16 -05:00
Guillaume Le Blanc
09c9ceb075
Use a regex to match --state-values-set-string arguments ( #1902 )
...
Signed-off-by: Guillaume Le Blanc <gleblanc@proton.me>
2025-02-04 07:59:31 +08:00
Nikolai Rodionov
b5eb879357
feat: execute templates against postRendererHooks ( #1839 )
...
This commit is supposed to add template support to post renderer args.
Also, to make it possible to template arguments that are added to helm
defaults, during the load, I'm removing default post renderer args from
the state and putting them to each release, unless custom args are
defined for the release.
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
2025-01-28 09:34:59 -05:00
Adam Blasko
524636c0a8
fix: using correct option for takeOwnership flag ( #1892 )
...
Fixed test to correctly assert the new flag
Signed-off-by: Adam Blasko <adam.blasko1@gmail.com>
2025-01-23 08:30:39 +08:00
Matthias Baur
d059b28fb3
Ensure 'helm repo add' is also not pollute on helmfile template ( #1887 )
...
When having multiple helmfiles in one helmfile.d folder and multiple of
them having repositories defined, the errors mention in #1749 still
existed.
Fixes #1749 (again)
Signed-off-by: Matthias Baur <m.baur@syseleven.de>
2025-01-22 20:42:33 +08:00
yxxhero
2784a4fbd7
build: update helm-diff to v3.9.14 in Dockerfiles and init.go ( #1877 )
...
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-01-17 19:54:04 -05:00
yxxhero
d0b75412d1
update helm and k8s versions in ci, dockerfiles, and go.mod ( #1872 )
2025-01-16 09:36:39 +08:00