-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ability to parse expressions that can filter and/or map a list
These expressions have the following format: ``` <reference> (("|" "->") <expr>) ``` <reference> is a reference to a list in the yaml that we're processing. What we have on the right hand side is a filter ("|") or a map ("->"). The <expr> is the function used to filter or map the list in the left hand side. We can have multiple filters and/or maps on the right. For example, we can see if all the side containers request less than 1 cpu using the following expression: ``` all: .spec.containers | .name != "main" -> .requests.cpu < 1 ```
- Loading branch information
1 parent
9d8235b
commit 5d21f87
Showing
5 changed files
with
113 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
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