helmfile/pkg/app
SeWieland 8b3ad5b793
feat: make environment context available (#832)
* feat: make environment context available

This feature adds the "{{.Environment.KubeContext}}" variable.

Discussion #829

Signed-off-by: sewieland <sebastian.wieland@iav.de>

* chore: fix tests which compare logging outputs

This commit adds an addtional space wherever needed to the expected log outputs due to the added "KubeContext" in the environment struct.

Discussion #829

Signed-off-by: Sebastian Wieland <wieland.s@mailbox.org>

* docs: added documentation for `Environment.KubeContext`

Discussion #829

Signed-off-by: Sebastian Wieland <wieland.s@mailbox.org>

* test: make sure the `Environment.KubeContext` is mapped out correctly

Discussion #829

Signed-off-by: Sebastian Wieland <wieland.s@mailbox.org>

---------

Signed-off-by: sewieland <sebastian.wieland@iav.de>
Signed-off-by: Sebastian Wieland <wieland.s@mailbox.org>
Co-authored-by: sewieland <sebastian.wieland@iav.de>
2023-05-22 13:43:46 +09:00
..
testdata feat: make environment context available (#832) 2023-05-22 13:43:46 +09:00
version feat: optimize version output (#412) 2022-10-08 14:26:15 +09:00
app.go fix extra args missing in helmfile apply subcommand (#858) 2023-05-18 12:34:18 +08:00
app_apply_hooks_test.go bump vals to v0.22.0 (#703) 2023-02-17 14:09:49 +08:00
app_apply_nokubectx_test.go feat: make environment context available (#832) 2023-05-22 13:43:46 +09:00
app_apply_test.go feat: make environment context available (#832) 2023-05-22 13:43:46 +09:00
app_diff_test.go bump vals to v0.22.0 (#703) 2023-02-17 14:09:49 +08:00
app_lint_test.go bump vals to v0.22.0 (#703) 2023-02-17 14:09:49 +08:00
app_list_test.go bump vals to v0.22.0 (#703) 2023-02-17 14:09:49 +08:00
app_sync_test.go feat: make environment context available (#832) 2023-05-22 13:43:46 +09:00
app_template_test.go bump vals to v0.22.0 (#703) 2023-02-17 14:09:49 +08:00
app_test.go feat: make environment context available (#832) 2023-05-22 13:43:46 +09:00
ask.go feat: helmfile as a go library (#639) 2019-06-04 09:12:00 +09:00
config.go Feat add cascade support (#860) 2023-05-15 13:49:33 +08:00
constants.go feat: mark deprecated args and cmd for v1 (#628) 2023-01-14 23:43:05 +08:00
constants_test.go fix lint error 2022-08-13 07:40:32 +08:00
context.go Drop Helm v2 support (#613) 2023-01-17 09:24:47 +09:00
desired_state_file_loader.go remove unnecessary remote.Locate() (#565) 2023-03-29 21:27:12 +08:00
destroy_nokubectx_test.go feat: make environment context available (#832) 2023-05-22 13:43:46 +09:00
destroy_test.go feat: make environment context available (#832) 2023-05-22 13:43:46 +09:00
diff_nokubectx_test.go feat: make environment context available (#832) 2023-05-22 13:43:46 +09:00
diff_test.go feat: make environment context available (#832) 2023-05-22 13:43:46 +09:00
errors.go feat: Opt-out dep-builds and repo-updates (#463) 2019-02-04 12:07:25 +09:00
errors_test.go add unittest for error.go in pkg/app 2022-04-28 09:01:02 +08:00
formatters.go Correct enabled property in helmfile list (#1921) 2022-01-10 17:24:07 +09:00
formatters_test.go add Go lint 2022-07-16 20:21:11 +08:00
init.go bump helm to v3.12.0 (#855) 2023-05-11 10:35:17 +08:00
init_test.go optimize lint logic (#586) 2022-12-18 08:39:45 +08:00
load_opts.go Use goccy/go-yaml for v1 / Prep bringing back go-yaml v2 for v0.x (#604) 2022-12-27 10:14:35 +09:00
load_opts_test.go add Go lint 2022-07-16 20:21:11 +08:00
run.go feat: add --skip-trailing-cr to helmfile diff (#625) 2023-05-08 05:23:59 +08:00
snapshot_test.go Use log capturing helper in TestApply_hooks 2022-11-13 08:20:13 +00:00
two_pass_renderer.go v1: Fix --state-values-set to override values of environments colocated with releases (#705) 2023-03-05 16:03:00 +08:00
two_pass_renderer_test.go Disable double-rendering in V1 (#647) 2023-01-24 12:38:11 +08:00
validate_config.go add Go lint 2022-07-16 20:21:11 +08:00
validate_config_test.go add unittest for ValidateConfig 2022-04-27 07:38:22 +08:00