-
Notifications
You must be signed in to change notification settings - Fork 597
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
SinkBinding with subject described with MatchLabels
on metav1.LabelSelector
can report Ready without subject being deployed
#5510
Comments
Why can't the SinkBinding be ready without a matching subject? IMHO the SinkBinding readiness signifies that it is Ready to properly modify a matching subject when it is created, but it is perfectly fine to create it afterwards. (SinkBinding Readiness should signify the webhook is ready to properly modify a matching subject when it exists, so. e.g. if it ready before the webhook is modified to accept the matching resources, that would be a bug) |
e.g. consider the example with SinkBinding and CronJob in https://knative.dev/docs/eventing/sources/sinkbinding/ , The whole setup is ready when SinkBinding and CronJob are created. (but SinkBinding's subjects are the Jobs created by the CronJob later) |
SinkBinding actually returns the Ready status as "subject not present" or similar, in some cases. So, now, it's mixed. Sometimes the absence of subject is propagated to Ready status, but in other cases it is not. See the repro #5511. I think that in cases where it is possible to report Readiness of SinkBinding, we should propagate the subject status as well. There are some exceptions to this, as you have given an example of CronJob. |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
This issue is stale because it has been open for 90 days with no |
Describe the bug
SinkBinding sometimes reports Ready even if its subject isn't ready (or even deployed). This bug is similar to #5442.
Expected behavior
SinkBinding shouldn't report Ready without matching subject being ready.
To Reproduce
#5511
Knative release version
TBD
The text was updated successfully, but these errors were encountered: