Commit Graph

1707 Commits

Author SHA1 Message Date
yxxhero 5c5dc42ef5
Refactor integration tests (#531)
* refactor integrations

Signed-off-by: yxxhero <aiopsclub@163.com>

* Update the integration test directory structure to better correlate the test script with testdata

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>

* Undo the test-cases directory renaming to make the diff more easy to understand

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>

* fix ci

Signed-off-by: yxxhero <aiopsclub@163.com>

Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-11-23 14:44:16 +09:00
xiaomudk 7844145ee3
Allow helmfile statefile to passed by stdin (#520)
* Allow helmfile statefile to passed by stdin

Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2022-11-22 11:34:05 +08:00
yxxhero ce7f38ee96
Merge pull request #535 from xiaomudk/patch-10
Remove redundant metadata fields from test samples
2022-11-22 10:55:31 +08:00
xiaomudk 766c1c951f Remove redundant metadata fields from test samples
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2022-11-22 10:33:05 +08:00
yxxhero 85f577e551
Merge pull request #533 from xiaomudk/patch-9
Fix getArray function copy error
2022-11-22 07:15:48 +08:00
xiaomudk a05ccab6c3 Fix getArray function copy error
Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2022-11-21 23:30:13 +08:00
koralsky 1ba83ae722
declare "reuse values" control mode in helmDefaults (#527)
* support for helmDefaults.reuseValues

Signed-off-by: Karol Ossowski <k@koralsky.pl>
2022-11-20 08:47:48 +08:00
yxxhero bdbfc9106d
Merge pull request #517 from helmfile/use-log-cap-helper-in-all-tests
Use the new log capturing helper in all remaining tests
2022-11-13 17:15:47 +08:00
Yusuke Kuoka 8d2aec249d Use the new log capturing helper in all tests
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-11-13 08:53:53 +00:00
yxxhero 235917c11c
Merge pull request #516 from helmfile/use-log-cap-helper-in-test-apply-hooks
Use log capturing helper in TestApply_hooks
2022-11-13 16:33:20 +08:00
Yusuke Kuoka 445c74c92b
Enhance `make fmt` to cover running gci for golangci-lint compat (#515)
* Enhance `make fmt` to cover running gci for golangci-lint compat

I have been using `make fmt` for formatting code before submitting a pull request. It turned out not to work in some cases where you added a new import because the default go-fmt obviously do not organize imports as the golangci-lint and gci expect.
This fixes that, by adding a gci command to the `make fmt` target.
Please note that this does not cover installing gci. If you need, please submit another pull request to add something like a `make install-gci` and make the `make fmt` depenedent on that target, so that one can get automatic gci installation when running `make fmt` for first time.

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>

* We don't need running gci via make on CI as we already run it as part of golangci-lint run

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-11-13 16:24:28 +08:00
Yusuke Kuoka 6b69b31754 Use log capturing helper in TestApply_hooks
Along with the addition of the new arg to the helper for log level customization.

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-11-13 08:20:13 +00:00
yxxhero f09ec18aa9
Merge pull request #499 from helmfile/498-helmfile-template-fails-when-selector-matches-a-chart-fetched-with-go-getter
fix: helmfile template fails when selector matches a chart fetched with go-getter
2022-11-13 15:27:50 +08:00
yxxhero 143f85b4f1 fix: helmfile template fails when selector matches a chart fetched with go-getter
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-13 15:10:57 +08:00
yxxhero 667c3723f0
Merge pull request #514 from helmfile/log-snapshot-test-helper
Introduce a new test helper for easier log snapshot testing
2022-11-13 11:41:44 +08:00
Yusuke Kuoka 844f6e9583 Introduce a new test helper for easier log snapshot testing
Use the new runWithLogCapture helper instead of the long boilerplate to capture the log for snapshot testing.

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-11-13 03:24:24 +00:00
Lassi Pölönen 0f44cfacc4
Add the ability to specify a lock file (#432)
Allow configuring the lockfile in the state. This makes it possible for
example maintain a lock per environment.

Signed-off-by: Lassi Pölönen <lassi.polonen@iki.fi>

Signed-off-by: Lassi Pölönen <lassi.polonen@iki.fi>
2022-11-12 08:59:56 +09:00
yxxhero 2594dc1524
Merge pull request #513 from helmfile/dependabot/go_modules/k8s.io/apimachinery-0.25.4 2022-11-12 06:07:26 +08:00
dependabot[bot] c9db278df7
build(deps): bump k8s.io/apimachinery from 0.25.3 to 0.25.4
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.25.3 to 0.25.4.
- [Release notes](https://github.com/kubernetes/apimachinery/releases)
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.25.3...v0.25.4)

---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-11 15:17:25 +00:00
yxxhero 8c870dc444
Merge pull request #512 from helmfile/bump-helm-to-3.10.2
bump: helm to 3.10.2
2022-11-11 14:40:08 +08:00
yxxhero 2324188695 bump: helm to 3.10.2
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-11 13:54:35 +08:00
dependabot[bot] cd92b4185e
build(deps): bump helm.sh/helm/v3 from 3.10.1 to 3.10.2 (#511) 2022-11-11 06:29:40 +08:00
Helge Eichelberg 8f59a1c18a
Add --output-dir-template flag to the fetch command (#456)
* Add --output-dir-template flag to the fetch command

Signed-off-by: elchenberg <elchenberg@users.noreply.github.com>
2022-11-05 18:55:02 +08:00
yxxhero 712ee3a0a2
Merge pull request #495 from helmfile/add_go_test_total_cover
feat: add go test total cover
2022-11-05 16:58:00 +08:00
yxxhero 34c5adb1da feat: add go test total cover
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-04 22:00:15 +08:00
yxxhero 3c907e2c2b
Merge pull request #494 from helmfile/add_anchors_merge_e2e_test
test: add template anchors merge e2e test
2022-11-04 21:14:09 +08:00
yxxhero 1513035718 test: add template anchors merge e2e test
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-04 20:56:56 +08:00
yxxhero 831410c814
Merge pull request #492 from helmfile/fix_deps_issue
fix deps issues
2022-11-04 14:32:20 +08:00
yxxhero b0bb03a0ea fix unittest
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-04 12:53:38 +08:00
yxxhero faf3444761 fix deps issues
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-04 12:53:38 +08:00
yxxhero ce6f8fc9ec
Merge pull request #457 from helmfile/454-helmfile-template-args-swallows-args
fix: args parse issue
2022-11-04 10:16:11 +08:00
yxxhero bc3528ae09 fix: args parse issue
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-04 10:53:00 +09:00
yxxhero 120ff7cce6
remove hooks dir (#484)
Signed-off-by: yxxhero <aiopsclub@163.com>

Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-04 10:52:38 +09:00
yxxhero 82004b53f9
split run.sh to make run.sh be more clear. (#485)
split run.sh

Signed-off-by: yxxhero <aiopsclub@163.com>

Signed-off-by: yxxhero <aiopsclub@163.com>
2022-11-04 10:51:57 +09:00
xiaomudk 6dcde20d7a
Add subcommand init for checks and installs helmfile deps (#389)
* Add subcommand init for checks and installs helmfile deps

Signed-off-by: xiaomudk <xiaomudk@gmail.com>
2022-11-03 14:51:30 +08:00
yxxhero 008e92de37
Merge pull request #486 from bmwiedemann/date
Allow to override build date with SOURCE_DATE_EPOCH
2022-11-02 19:50:03 +08:00
Bernhard M. Wiedemann 5f2b6994a6 Allow to override build date with SOURCE_DATE_EPOCH
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.

This date call works with different variants of date.
Also use UTC to be independent of timezone.

Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
2022-11-02 08:06:44 +08:00
Quan TRAN e919b4b1d2
fix oci:// chart (#477)
* fix oci:// chart

Signed-off-by: Quan TRAN <itscaro@users.noreply.github.com>
2022-11-01 13:50:05 +08:00
Nenad Strainovic 3ac0cee50a
Document git for windows env auto-prefix #481 (#487)
* Document git for windows env auto-prefix #481

Signed-off-by: Nenad Strainovic <nenad.strainovic@asseco-see.rs>
2022-10-31 22:24:06 +08:00
Quan TRAN 414f899c28
use fs.Getwd() to get working dir for sub helmfile (#471)
* use fs.Getwd() to get working dir for sub helmfile

Signed-off-by: Quan TRAN <itscaro@users.noreply.github.com>
2022-10-29 07:40:40 +08:00
yxxhero 2cf6501d1f
Merge pull request #480 from helmfile/fix_chart_need
fix chart needs test issue
2022-10-28 15:06:37 +08:00
yxxhero 2e7261426a fix chart needs test issue
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-10-28 14:45:24 +08:00
yxxhero 9704180862
Merge pull request #476 from helmfile/qtran/readme 2022-10-27 05:17:12 +08:00
Quan TRAN 4c103073bc
Fix OCI example 2022-10-26 21:34:43 +02:00
yxxhero d54104d6ec
Merge pull request #470 from helmfile/dependabot/go_modules/github.com/spf13/cobra-1.6.1 2022-10-26 06:43:56 +08:00
dependabot[bot] dcfc31eca6
build(deps): bump github.com/spf13/cobra from 1.6.0 to 1.6.1
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.6.0...v1.6.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-25 16:12:27 +00:00
Quan TRAN 2702161e74
add basepath along with filepath into yaml comment (#460)
* add basepath along with filepath into yaml comment

Signed-off-by: Quan TRAN <itscaro@users.noreply.github.com>
2022-10-25 17:44:28 +08:00
yxxhero 4a5928e269
Merge pull request #467 from helmfile/qtran/docker-build-wget
use curl instead of wget & update helm to 3.10.1
2022-10-25 16:17:57 +08:00
Quan TRAN 7d05ffd098 use curl instead of wget & update helm to 3.10.1
Signed-off-by: Quan TRAN <itscaro@users.noreply.github.com>
2022-10-25 07:48:54 +00:00
yxxhero d4b1b078cf
Merge pull request #465 from helmfile/463-debug-is-not-set-in-helm-template
fix --debug flag
2022-10-25 14:36:18 +08:00