-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WiP: balloons: allow balloon match by expressions.
Implement assigning containers to balloon instances by container match expression defined in balloon definitions. Match expressions are evaluated for containers which are not explicitly assigned to any balloon by an annotation, before namespace-based assignments. If an expression in a balloon definition matches a container, that container is assigned to a balloon instance of that definition. For instance, given this balloon definition among the configuration ... balloonTypes: - name: specialBalloon matchContainers: - key: pod/labels/app.kubernetes.io/component operator: Equals values: [ "SpecialComponent" ] ... any container not explicitly annotated to some other balloon will get assigned to instances of specialBalloon, if the pod of the container has the label app.kubernetes.io/component=SpecialComponent Similarly, given this balloon definition among the configuration ... balloonTypes: - name: podBalloon matchContainers: - key: pod/name operator: In values: [ "pod1", "pod2", "pod3" ] ... all containers of pods named pod1, pod2, and pod3 will be assigned to instances of podBalloon. Signed-off-by: Krisztian Litkey <[email protected]>
- Loading branch information
Showing
5 changed files
with
115 additions
and
0 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
8 changes: 8 additions & 0 deletions
8
pkg/apis/config/v1alpha1/resmgr/policy/balloons/zz_generated.deepcopy.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.