-
Notifications
You must be signed in to change notification settings - Fork 960
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
Do not block composed resources on failed neighbor #2180
Do not block composed resources on failed neighbor #2180
Conversation
f2b40d0
to
37ec51b
Compare
|
I removed the |
Are we feeling OK with including this in v1.2.0? |
@muvaf yep! Need to do a bit more testing, but I'll get this fixed up and ready to go! |
37ec51b
to
317f0a9
Compare
0706880
to
4a83d99
Compare
The As we talked offline, we need either an empty entry or placeholder. My preference would be towards empty entry. It seems like we need to remove the requirements here and there is also a workaround here in the code that sets the references (I don't remember why it existed precisely, but I think it might have to do with using I think it's worth testing these changes. I can't really see a reason why it'd not be able to have an array entry with all the values being A different approach could be that we could mark the entry with the name or index of the template that's used, i.e. adding a |
Just dropping some breadcrumbs to this specific comment - #2131 (comment), which touches on why I didn't take that option. |
Makes it possible for a resource reference to exist with just GVK to accomodate for incremental rendering of resources in a composition. Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
564da9c
to
0197d79
Compare
@muvaf @negz I have updated here to only reference composed resources by GVK when we are unable to render them (see updated testing results in PR body) and everything appears to be behaving correctly. I think this is ready for another review, but I am still testing out a few scenarios -- I am specifically concerned with situations where we fail to render a resource after we have already rendered it successfully in the past, but I think we should still be fine in that case. |
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.
One question and a nit, but this broadly LGTM.
Updates the composite resource reconciler to render all resources it is able to even if it is not able to render all resources in the specified composition. This is a change in behavior from refusing to render any composed resources if not able to render all. Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
Skips composed resource references with no name when garbage collecting in the template associator because the lack of a name indicates that the resource was not rendered. Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
Composites can now reference missing composed resources that it can't render so we must allow for empty names. Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
772faa1
to
295fd05
Compare
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 @hasheddan !
Description of your changes
Updates the composite resource reconciler to render all resources it is
able to even if it is not able to render all resources in the specified
composition. This is a change in behavior from refusing to render any
composed resources if not able to render all.
Signed-off-by: hasheddan georgedanielmangum@gmail.com
Fixes #2175
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested
Using the manifests in #2175:
ObjectStorageBucket
Bucket
was createdIAMPolicy
does not have aname
uid
is populated instatus
, we can create theIAMPolicy
IAMRole
is now present in resource refs on the composite