helmfile/cmd
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
..
apply.go move all subcommand to sigle file 2022-06-10 12:42:31 +08:00
build.go move all subcommand to sigle file 2022-06-10 12:42:31 +08:00
cache.go move all subcommand to sigle file 2022-06-10 12:42:31 +08:00
charts.go Move diff charts template subcommand to a dedicated source file (#139) 2022-06-10 10:24:30 +09:00
delete.go move all subcommand to sigle file 2022-06-10 12:42:31 +08:00
deps.go refactor cmd dir 2022-06-01 07:32:36 +08:00
destroy.go move all subcommand to sigle file 2022-06-10 12:42:31 +08:00
diff.go Make a few helmfile sub-commands consistently support needs-related flags (#78) 2022-06-20 07:19:39 +09:00
fetch.go move all subcommand to sigle file 2022-06-10 12:42:31 +08:00
lint.go move all subcommand to sigle file 2022-06-10 12:42:31 +08:00
list.go move all subcommand to sigle file 2022-06-10 12:42:31 +08:00
repos.go Move repos subcommand to a dedicated source file (#137) 2022-06-06 09:12:54 +09:00
root.go move all subcommand to sigle file 2022-06-10 12:42:31 +08:00
status.go move all subcommand to sigle file 2022-06-10 12:42:31 +08:00
sync.go move all subcommand to sigle file 2022-06-10 12:42:31 +08:00
template.go Make a few helmfile sub-commands consistently support needs-related flags (#78) 2022-06-20 07:19:39 +09:00
test.go move all subcommand to sigle file 2022-06-10 12:42:31 +08:00
version.go move all subcommand to sigle file 2022-06-10 12:42:31 +08:00
write-values.go move all subcommand to sigle file 2022-06-10 12:42:31 +08:00