-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v3.7.7 | ||
v3.8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
docs/how_to/misc/multiple_desired_state_files_specification.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
version: v3.8.0 | ||
--- | ||
|
||
# Specification file | ||
|
||
Starting from v3.8.0, Helmsman allows you to use Specification file passed with `--spec <file>` flag | ||
in order to define multiple Desired State Files to be merged in particular order and with specific priorities. | ||
|
||
An example Specification file: | ||
|
||
`spec.yaml`: | ||
|
||
``` | ||
--- | ||
stateFiles: | ||
- path: examples/example.yaml | ||
- path: examples/minimal-example.yaml | ||
priority: -10 | ||
- path: examples/minimal-example.toml | ||
priority: -20 | ||
``` | ||
|
||
This file can be then run with: | ||
```shell | ||
helmsman --spec spec.yaml ... | ||
``` | ||
|
||
What it does is it takes the files from `stateFiles` list and orders them based on their priorities same way it does with the apps in DSF file. | ||
In an example above the result order would be: | ||
``` | ||
- path: examples/minimal-example.toml | ||
- path: examples/minimal-example.yaml | ||
- path: examples/example.yaml | ||
``` | ||
with priorities being `-20, -10, 0` after ordering. | ||
|
||
Once ordering is done, Helmsman will read each file one by one and merge the previous states with the current file it goes through. | ||
|
||
One can take advantage of that and define the state of the environment starting with more general definitions and then reaching more specific cases in the end, | ||
which would overwrite or extend things from previous files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# v3.7.7 | ||
# v3.8.0 | ||
|
||
## Fixes and improvements | ||
|
||
- feat: Add namespaceLabelsAuthoritative settings option to allow removing undefined ns labels (#631) | ||
- feat: Add skipIgnoredApps settings option to allow ignoring apps not considered when using `-target` or `-group` flag (#634) | ||
- feat: Add Specification file support with `-spec` flag in order to define an environment with multiple Desired State Files (#633) |