Commit Graph

1318 Commits

Author SHA1 Message Date
yxxhero 505fff245c
Merge pull request #179 from jduepmeier/update-dockerfile
Update alpine base image to 3.16
2022-06-24 16:01:43 +08:00
Jan Düpmeier b4b0763cdf
Update alpine base image to 3.16
Signed-off-by: Jan Düpmeier <j.duepmeier@googlemail.com>
2022-06-24 09:33:56 +02:00
yxxhero 219671b54c
Merge pull request #176 from helmfile/dependabot/go_modules/github.com/stretchr/testify-1.7.4
Bump github.com/stretchr/testify from 1.7.3 to 1.7.4
2022-06-24 07:48:30 +08:00
dependabot[bot] fae23fe380
Bump github.com/stretchr/testify from 1.7.3 to 1.7.4
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.3 to 1.7.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.3...v1.7.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-23 23:31:45 +00:00
yxxhero 91aea33350
Merge pull request #177 from kobtea/fix/typo
Fix typo in README
2022-06-24 07:30:16 +08:00
Hiroaki Kobayashi 26e0a4a482 Fix typo in README
Signed-off-by: Hiroaki Kobayashi <kobtea9696@gmail.com>
2022-06-23 23:48:22 +09:00
yxxhero 3f48b295d3
update Readme.md (#170)
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-06-21 10:55:01 +09:00
yxxhero 1996304880
fix ci test error (#167)
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-06-21 10:53:19 +09:00
yxxhero 3bf4744049
Merge pull request #172 from helmfile/dependabot/go_modules/github.com/stretchr/testify-1.7.3
Bump github.com/stretchr/testify from 1.7.2 to 1.7.3
2022-06-21 08:47:44 +08:00
dependabot[bot] 7cc23f1ee8
Bump github.com/stretchr/testify from 1.7.2 to 1.7.3
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.2...v1.7.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-20 15:44:07 +00:00
Yusuke Kuoka fc306ec3d1
Make a few helmfile sub-commands consistently support needs-related flags (#78)
* Make a few helmfile sub-commands to consistently support needs-related flags

* helmfile-diff adds support for --include-transitive-needs
* helmfile-template adds support for --skip-needs
* helmfile-lint adds support for --skip-needs, --include-needs, and --include-transitive-needs

Ref https://github.com/roboll/helmfile/issues/2055

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

* Fix a few helmfile-lint needs related bugs and add tests

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

* Is include-transitive-needs realy working as intended? 🤔

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

* Confirm that it does fail on unselected need by default

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

* Add missing testdata

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

* Test helmfile-template for include/skip needs support

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

* Fix a few terms

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

* Add more tests to better know the current helmfile-diff behavior around needs

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

* Fix failing tests

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

* Fix helmfile-diff to consistently handle skip/include-needs

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

* Extract testhelper.RequireLog for reusing

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

* Fix all bugs and test cases for TestDiff and TestDiff_2

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

* Fix TestDiff_2

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

* Fix TestDiff

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

* Fix TestDiffWithNeeds

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

* Unify behavior on including disabled releases as needs for lint and template

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

* Fix bug that --include-transitive-needs does not imply include-needs

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-06-20 07:19:39 +09:00
yxxhero 3e60f72d1f
docker build test on ci (#164)
* docker build test on ci

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

* fix issue

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

* fix issue

Signed-off-by: yxxhero <aiopsclub@163.com>
2022-06-18 18:13:32 +09:00
yxxhero 092c4ed671
Merge pull request #163 from Jasstkn/bump-helm-3.9.0
feat(dockerfile): update helm to 3.9.0
2022-06-16 16:00:36 +08:00
Jasstkn 4fa305c38a
fix: build of Dockerfile.ubuntu
Signed-off-by: Jasstkn <mariia.kotliarevskaia@gmail.com>
2022-06-16 09:48:56 +02:00
Jasstkn 724c8eea09
fix: arg helm_version in Dockerfile.ubuntu
Signed-off-by: Jasstkn <mariia.kotliarevskaia@gmail.com>
2022-06-15 15:44:49 +02:00
Jasstkn 2230022ad0
feat(dockerfile): update helm to 3.9.0
Signed-off-by: Jasstkn <mariia.kotliarevskaia@gmail.com>
2022-06-15 15:03:23 +02:00
yxxhero 7183bc5044
Merge pull request #159 from helmfile/dependabot/go_modules/github.com/hashicorp/go-getter-1.6.2
Bump github.com/hashicorp/go-getter from 1.6.1 to 1.6.2
2022-06-15 20:29:17 +08:00
dependabot[bot] a6f1d7c8cf
Bump github.com/hashicorp/go-getter from 1.6.1 to 1.6.2
Bumps [github.com/hashicorp/go-getter](https://github.com/hashicorp/go-getter) from 1.6.1 to 1.6.2.
- [Release notes](https://github.com/hashicorp/go-getter/releases)
- [Changelog](https://github.com/hashicorp/go-getter/blob/main/.goreleaser.yml)
- [Commits](https://github.com/hashicorp/go-getter/compare/v1.6.1...v1.6.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-getter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-14 15:37:16 +00:00
yxxhero 21b2248d19
Merge pull request #158 from helmfile/dependabot/go_modules/github.com/variantdev/vals-0.18.0
Bump github.com/variantdev/vals from 0.17.1 to 0.18.0
2022-06-14 08:46:39 +08:00
dependabot[bot] e642094ead
Bump github.com/variantdev/vals from 0.17.1 to 0.18.0
Bumps [github.com/variantdev/vals](https://github.com/variantdev/vals) from 0.17.1 to 0.18.0.
- [Release notes](https://github.com/variantdev/vals/releases)
- [Changelog](https://github.com/variantdev/vals/blob/main/.goreleaser.yml)
- [Commits](https://github.com/variantdev/vals/compare/v0.17.1...v0.18.0)

---
updated-dependencies:
- dependency-name: github.com/variantdev/vals
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 16:00:26 +00:00
yxxhero 1da88b829c
Merge pull request #153 from yxxhero/move_all_subcommand_to_sigle
move all subcommand to sigle file
2022-06-11 16:09:21 +08:00
yxxhero 45283bfcde move all subcommand to sigle file
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-06-10 12:42:31 +08:00
yxxhero ec1661c7ac
Merge pull request #152 from helmfile/dependabot/go_modules/github.com/variantdev/vals-0.17.1
Bump github.com/variantdev/vals from 0.16.2 to 0.17.1
2022-06-10 11:43:49 +08:00
yxxhero d4160ebc59
Merge pull request #141 from helmfile/dependabot/go_modules/github.com/stretchr/testify-1.7.2
Bump github.com/stretchr/testify from 1.7.1 to 1.7.2
2022-06-10 10:37:58 +08:00
yxxhero fb8a7f0bf4
Merge pull request #151 from helmfile/release-automation
Release automation and release build testing
2022-06-10 10:37:40 +08:00
dependabot[bot] 4220f2e3a9
Bump github.com/variantdev/vals from 0.16.2 to 0.17.1
Bumps [github.com/variantdev/vals](https://github.com/variantdev/vals) from 0.16.2 to 0.17.1.
- [Release notes](https://github.com/variantdev/vals/releases)
- [Changelog](https://github.com/variantdev/vals/blob/master/.goreleaser.yml)
- [Commits](https://github.com/variantdev/vals/compare/v0.16.2...v0.17.1)

---
updated-dependencies:
- dependency-name: github.com/variantdev/vals
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-10 02:25:53 +00:00
dependabot[bot] 7a63f8b031
Bump github.com/stretchr/testify from 1.7.1 to 1.7.2
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.7.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-10 02:25:43 +00:00
yxxhero 261b311af6
Merge pull request #150 from helmfile/go-1.18
Bump module Go version to 1.18
2022-06-10 10:24:26 +08:00
Yusuke Kuoka 0948bbae1c Release automation and release build testing
We will be using this automation which is triggered on every new tag created in this repo for the upcoming helmfile 0.145.0 release.

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-06-10 02:15:40 +00:00
Yusuke Kuoka 4071f6aa99 Bump module Go version to 1.18
Our CI workflows and docker builds already use 1.18 but our go.mod was left with 1.17. This bumps it to 1.18.

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-06-10 02:09:09 +00:00
yxxhero e5e8309ea6
Move diff charts template subcommand to a dedicated source file (#139)
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-06-10 10:24:30 +09:00
yxxhero ef812d1227
Merge pull request #144 from helmfile/add-args-flag-removal-to-1.0-proposal
proposal: Drop --args in Helmfile 1.0
2022-06-08 12:10:24 +08:00
Yusuke Kuoka 9abcc1f413 proposal: Drop --arsg in Helmfile 1.0
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-06-08 03:43:30 +00:00
yxxhero e182e9e775
Merge pull request #140 from ogugu9/fix-getting-started-chart
Fix deprecated chart in Getting Started
2022-06-06 20:21:29 +08:00
ogugu (Riku Ogura) c897a10dce Fix deprecated chart in Getting Started
Signed-off-by: ogugu (Riku Ogura) <e.cos.isin@gmail.com>
2022-06-06 20:59:34 +09:00
yxxhero fef447ddec
Merge pull request #136 from helmfile/towards-1.0
Add proposals about two breaking changes before we cut Helmfile 1.0
2022-06-06 09:43:56 +08:00
yxxhero bb20fcaf5b
Move repos subcommand to a dedicated source file (#137)
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-06-06 09:12:54 +09:00
yxxhero 9032395818
Merge pull request #138 from stoned/doc-xref
Minor documentation fixes
2022-06-05 21:20:33 +08:00
Stoned Elipot 214d06e5cd Whitespace fixes
Signed-off-by: Stoned Elipot <stoned.elipot@gmail.com>
2022-06-05 14:14:34 +02:00
Stoned Elipot 6ea940e50f Fix documentation link
Signed-off-by: Stoned Elipot <stoned.elipot@gmail.com>
2022-06-05 14:14:34 +02:00
Yusuke Kuoka bf9eeba544 Add proposals about two breaking changes before we cut Helmfile 1.0
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-06-05 08:32:54 +00:00
Yusuke Kuoka 173767d2c5
Create SECURITY.md (#135)
Probably this is the best we can currently offer. Any suggestions are welcomed though.

Ref https://github.com/roboll/helmfile/issues/2147

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-06-05 17:11:54 +09:00
Yusuke Kuoka 83a7245d0f
Enhance the bug report form (#134)
It turned out we lack some important information that is necessary to make it a real bug without guesswork.

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-06-05 16:16:17 +09:00
Yusuke Kuoka 58721ab1fc
Add yxxhero as a maintainer (#132)
I've asked a few times by @yxxhero if he deserves a seat as a maintainer of the Helmfile project.
Seeing the amount and the number of his recent contributions, and the nature of his contributions (add tests and fix bugs and CI issues, review PRs), I think he is in a relatively unique position compared to existing maintainers, and we can work better together!

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-06-05 16:04:36 +09:00
yxxhero 6e5a726ae5
fix ci issue (#131)
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-06-05 15:31:36 +09:00
Sergio Morales 414db47428
chore(state): Append Api Versions flags to helm-diff (#107)
* chore(state): Append Api Versions flags to helm-diff

Signed-off-by: Sergio Morales <sergio@cornershopapp.com>

* chore(state): Added unit test to state.flagsForDiff

Signed-off-by: Sergio Morales <sergio@cornershopapp.com>

* chore(state): Check Helmstate values if ReleaseSpec values aren't set

Signed-off-by: Sergio Morales <sergio@cornershopapp.com>
2022-06-05 15:18:54 +09:00
Quan TRAN 577f54af7a
Introduce DISABLE_INSECURE_FEATURES to disable insecure command executions (#1)
* introduce DISABLE_INSECURE_FEATURES to disable insecure executions

Signed-off-by: Quan TRAN <account@itscaro.me>

* disable remote sources when DISABLE_INSECURE_FEATURES is set to "true"

Signed-off-by: Quan TRAN <account@itscaro.me>

* refactor envvar package

Signed-off-by: Quan TRAN <account@itscaro.me>

* (test) fix test fixtures

Signed-off-by: Quan TRAN <account@itscaro.me>

* use absolute path to avoid unit test failure

Signed-off-by: Quan TRAN <account@itscaro.me>

* Fix conflicts

Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-06-05 15:15:06 +09:00
Dominic 789af92c09
Adds feature to fetch release values and secret values from remote (#47)
* Adds feature to fetch environment values from remote

The releases and environment section allow for values files on the local
disk.
This enhancement allows for referencing remote (go-getter) files to be
fetched, cached and referenced.

In addition when fetching a remote git source with a ssh key the ssh key
will not be part of the caching folder name. This avoids two problems:
1. Don't leak sensitive information in the name of the caching folder
2. Base64 encoded SSH keys are very long. On some file systems the max
lenght of the directory name is hit when using the full base64
information in the path name.

The sshkey informations are reducted. Because of this fixed string
there is a change of colloding cache names. The likelihood of this
collision is very low. The git repo and git reference need to be the
same, but the sshkey can change. This will result in the same source to
be checkout out and referenced.

Signed-off-by: Lüchinger Dominic <dev@snowgarden.ch>

* Update pkg/state/storage.go

Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-06-05 15:08:38 +09:00
Yusuke Kuoka b6f3972381
Merge pull request #130 from yxxhero/little_code_opt
little code optimize
2022-06-05 14:46:55 +09:00
yxxhero aaf2126f91 little code optimize
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-06-05 12:58:55 +08:00