-
Notifications
You must be signed in to change notification settings - Fork 778
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
feat: recursive expansion #2679
feat: recursive expansion #2679
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2679 +/- ##
==========================================
+ Coverage 52.79% 53.07% +0.28%
==========================================
Files 123 124 +1
Lines 10941 11182 +241
==========================================
+ Hits 5776 5935 +159
- Misses 4710 4772 +62
- Partials 455 475 +20
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job!
Biggest missing piece is the need to figure out conflicting templates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is looking great 🥇 ; main question about the graph impl
Signed-off-by: davis-haba <[email protected]>
Signed-off-by: davis-haba <[email protected]>
Signed-off-by: davis-haba <[email protected]>
Signed-off-by: davis-haba <[email protected]>
Signed-off-by: davis-haba <[email protected]>
Signed-off-by: davis-haba <[email protected]>
2357e4a
to
3e80ff6
Compare
Signed-off-by: davis-haba <[email protected]>
Signed-off-by: davis-haba <[email protected]>
Signed-off-by: davis-haba <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, haven't looked at tests yet
LGTM with nits, I mean |
Signed-off-by: davis-haba <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for addressing comments made earlier 🥇 ; I don't have anything else blocking on my end
Signed-off-by: davis-haba <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay. LGTM
Implements recursive expansion Signed-off-by: Anlan Du <[email protected]>
Implements recursive expansion.
Example use case: one could configure Cronjobs to expand into a Jobs, which then expands into Pods.
If a cycle is detected which would result in infinite expansion, every template that belongs to that cycle is disabled.
This is to prevent a "first past the post" race condition where different pods may have different templates enabled depending on the order their controllers reconciled the templates.
By disabling all templates belonging to a cycle, we can guarantee that every controller is enforcing the same templates in the steady state (after controllers have finished reconciling all updates).
Fixes: #2511