Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

balloons: implement groupBy option #278

Merged
merged 6 commits into from
Mar 15, 2024

Conversation

askervin
Copy link
Collaborator

@askervin askervin commented Mar 4, 2024

groupBy enables grouping containers into balloon instances.

Stacked on top of PR #277.

@askervin askervin force-pushed the 5Tk_balloons_groupby_stacked branch 2 times, most recently from d80d51e to 66d7c54 Compare March 6, 2024 13:40
@klihub klihub changed the title Balloons: implement groupBy option balloons: implement groupBy option Mar 13, 2024
@klihub
Copy link
Collaborator

klihub commented Mar 13, 2024

@askervin Can you run locally a make generate and squash the resulting changes to the commit which originally updated the balloons configuration API (seems to be commit be7ee5c3121983b88e3072e52f4190ca254dcdae78 / 'balloons: add groupBy balloon type option') ?

That would get us rid of the failed minimal verification.

@askervin askervin force-pushed the 5Tk_balloons_groupby_stacked branch from 66d7c54 to ea01fdb Compare March 13, 2024 09:11
@askervin askervin marked this pull request as ready for review March 13, 2024 09:11
klihub and others added 6 commits March 13, 2024 13:16
Expose evaluation of (potentially joint) pod and container key
references using the newly added EvalRef() Evaluable interface.
This allows one to evaluate the values of key references which
originally were only used in expressions without having to put
an expression around such references.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Implement Expand() which scans an input string, substituting
plain $keys and/or well-formed ${keys} in the output with the
referenced values. Add corresponding convenience wrappers to
pods and containers.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
groupBy groups containers into same balloon instances if their groupBy
expressions evaluate to the same group. Expressions are strings where
key references like ${pod/labels/mylabel} will be substituted with
corresponding values.

Signed-off-by: Antti Kervinen <antti.kervinen@intel.com>
Signed-off-by: Antti Kervinen <antti.kervinen@intel.com>
Signed-off-by: Antti Kervinen <antti.kervinen@intel.com>
Signed-off-by: Antti Kervinen <antti.kervinen@intel.com>
@askervin askervin force-pushed the 5Tk_balloons_groupby_stacked branch from ea01fdb to 38d9f93 Compare March 13, 2024 11:22
klihub
klihub previously approved these changes Mar 14, 2024
@klihub klihub self-requested a review March 14, 2024 15:51
@klihub klihub dismissed their stale review March 14, 2024 15:53

This looks otherwise fine, but looks like it requires a manual rebase due to conflicts. @askervin If you rebase it, I can LGTM it.

Copy link
Collaborator

@kad kad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@klihub klihub merged commit 34db7ea into containers:main Mar 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants