mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-22 08:24:04 +02:00
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>
This commit is contained in:
@@ -3,13 +3,14 @@
|
||||
- `Environment`: The information about the environment. This is set by the
|
||||
`--environment` flag. It has several objects inside of it:
|
||||
- `Environment.Name`: The name of the environment
|
||||
- `Environment.KubeContext`: The kube context to be used by default for releases in the environment.
|
||||
- `Values`: Values passed into the environment.
|
||||
- `StateValues`: alias for `Values`.
|
||||
- `Namespace`: The namespace to be released into
|
||||
|
||||
# release template built-in objects
|
||||
|
||||
it be used for the below tow cases:
|
||||
it be used for the below two cases:
|
||||
|
||||
1. release definition
|
||||
```
|
||||
@@ -56,6 +57,7 @@ releases:
|
||||
- `Environment`: The information about the environment. This is set by the
|
||||
`--environment` flag. It has several objects inside of it:
|
||||
- `Environment.Name`: The name of the environment
|
||||
- `Environment.KubeContext`: The kube context to be used by default for releases in the environment.
|
||||
- `Chart`: The chart name for the release.
|
||||
- `KubeContext`: The kube context to be used for the release
|
||||
- `Namespace`: The namespace to be released into
|
||||
|
||||
Reference in New Issue
Block a user