Repository navigation
mark revision Ready status true by looking for the services endpoints… - #104
Conversation
There was a problem hiding this comment.
I'd even drop Revision from the name.
There was a problem hiding this comment.
Another approach to consider here would be looking at the OwnerRef like this
There was a problem hiding this comment.
If you called this: LookupServiceOwner or something, it could subsume the lookup below?
There was a problem hiding this comment.
Since we already create the label and I can use it, for this PR I'd like to just use that. I've added a method and a TODO. Ok with that?
There was a problem hiding this comment.
isn't this: r.Is[Revision]Ready()?
There was a problem hiding this comment.
We should probably add tests for this stuff.
There was a problem hiding this comment.
Are you even using any of this stuff in this change?
There was a problem hiding this comment.
I'll pull these changes into a separate PR.
|
Yes on tests and some cleanup (hence the WIP label), just curious about high level doing it this way? I'm just curious if this approach seems like what we want to do? I'll change RevisionTemplate next to watch for Revision.Status, etc. So wanted to get a yay/nay before sending a bigger PR :) |
|
You and your labels :) I put a big fat [WIP] in my title, so I definitely never see the label. Sorry, I'll try and adjust. I think I'm generally fine with this assuming my working assumption holds, which is that if/when a Container specifies a readiness condition that it won't show up in the |
|
Yes, that's right: readinessProbe: Indicates whether the Container is ready to service requests. If the readiness probe fails, the endpoints controller removes the Pod’s IP address from the endpoints of all Services that match the Pod. The default state of readiness before the initial delay is Failure. If a Container does not provide a readiness probe, the default state is Success |
|
No worries, I can also adjust :) |
… to have ready pods.
38444df to
b7c9ddd
Compare
There was a problem hiding this comment.
Since we already create the label and I can use it, for this PR I'd like to just use that. I've added a method and a TODO. Ok with that?
There was a problem hiding this comment.
I'll pull these changes into a separate PR.
Produced via: `./hack/update-deps.sh --upgrade && ./hack/update-codegen.sh` /assign n3wscott shashwathi tanzeeb /cc n3wscott shashwathi tanzeeb
… to have ready pods.