feat[compositions]: realtime compositor – part 1: changes to compositions#4582
Conversation
9209c6f to
3dce52d
Compare
0bb7327 to
3dce52d
Compare
3dce52d to
4c9382a
Compare
|
@sttts +1 for adding this functionality. Good idea. As to the implementation, it mostly looks great. My only thought is whether it makes sense for |
4c9382a to
629c52a
Compare
Done. You were right, looks better now. |
9d0b1eb to
341efb8
Compare
341efb8 to
09f4113
Compare
9b580c7 to
fb5f576
Compare
| if !ok { | ||
| t.Errorf("list was not an UnstructuredList") | ||
| } else if u.GroupVersionKind() != dogList { | ||
| t.Errorf("list was not an UnstructuredList") |
There was a problem hiding this comment.
the error here is not about wron GVK.
fb5f576 to
79366fd
Compare
40089b8 to
523061b
Compare
|
|
523061b to
eb6c803
Compare
|
Have added an e2e test. |
pedjak
left a comment
There was a problem hiding this comment.
lgtm, a few non-blocking questions only.
| xrs.SetGroupVersionKind(schema.GroupVersionKind(of)) | ||
| xrs.SetKind(schema.GroupVersionKind(of).Kind + "List") | ||
| if err := list(ctx, &xrs); err != nil { | ||
| log.Debug("cannot list in CompositionRevision handler", "type", schema.GroupVersionKind(of).String(), "error", err) |
There was a problem hiding this comment.
should this log line get a bit more attention, i.e. be Info, if such error does not happen often?
There was a problem hiding this comment.
that's a more general question (out of scope here): should we log serious problems above debug if they most likely show a logic problem in code, but the end user cannot do anything with them. IMO we should. Got told elsewhere that debug is the right level. I disagree.
There was a problem hiding this comment.
Since this is a new piece of code, I think we could go with Info here.
eb6c803 to
18f5367
Compare
phisco
left a comment
There was a problem hiding this comment.
LGTM! just a minor nit comment
|
@phisco merged your suggestion. |
…sion is created Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@upbound.io>
e8f198f to
15dcd77
Compare
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@upbound.io>
15dcd77 to
a4fd13a
Compare
Description of your changes
This PR makes the compositor (= the controller for the XR) to watch
CompositionRevisionstoo, and run the compositor onCompositionRevisioncreation for the relevant XRs, in order to select the new revision in automatic mode, and to reapply the new manifests.This speeds up the inner loop for composition authors to be realtime.
Demo (left changing the composition, top right the composition revision being created, middle right the revision is selected for the XR, bottom right the effect on the MR):

I have:
make reviewableto ensure this PR is ready for review.Addedbackport release-x.ylabels to auto-backport this PR, if necessary.Opened a PR updating the docs, if necessary.