-
Notifications
You must be signed in to change notification settings - Fork 261
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
WaitForReady should check for event type before trying to read generation number #1389
Labels
good first issue
Denotes an issue ready for a new contributor.
kind/bug
Categorizes issue or PR as related to a bug.
Comments
/kind bug |
knative-prow-robot
added
kind/bug
Categorizes issue or PR as related to a bug.
good first issue
Denotes an issue ready for a new contributor.
labels
Jul 19, 2021
/assign |
cardil
added a commit
to cardil/knative-client
that referenced
this issue
Jul 19, 2021
cardil
added a commit
to cardil/knative-client
that referenced
this issue
Jul 19, 2021
cardil
added a commit
to cardil/knative-client
that referenced
this issue
Jul 19, 2021
cardil
changed the title
WaitForReady should chack for event type before trying to check generation number
WaitForReady should check for event type before trying to read generation number
Jul 19, 2021
cardil
added a commit
to cardil/kn-plugin-event
that referenced
this issue
Jul 19, 2021
knative-prow-robot
pushed a commit
that referenced
this issue
Jul 21, 2021
knative-prow-robot
pushed a commit
to knative-extensions/kn-plugin-event
that referenced
this issue
Jul 22, 2021
* Fixing the addressable resolver * Properly working address resolver * Working fake & it tests (apart those affected by knative/client#1389) * Upgrade to latest knative * Use interim fork until merge of knative/client#1390 * Allow addressable URI to be empty, and by default * Remove interim personal fork
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
Denotes an issue ready for a new contributor.
kind/bug
Categorizes issue or PR as related to a bug.
Bug report
The code at location supplied behaves badly in a situation when it receives an event of type different from MODIFIED, in which the underlying object doesn't contain a status field yet.
That situation is completely normal, as ADDED event can be received first, and the resource at that point may not possess a status field yet.
client/pkg/wait/wait_for_ready.go
Lines 183 to 207 in e26d5f2
Such situation I've observed while developing wait on ready based on dynamic client at knative-extensions/kn-plugin-event#38
The actual error that is being returned is similar to:
Expected behavior
When WaitForReady receives an event of type different from MODIFIED, it should skip it first, before checking anything in the underlying object structure.
Steps to reproduce the problem
cardil@7ca0769
Knative (serving/eventing) version
The text was updated successfully, but these errors were encountered: