-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add a watch function to wait for a deployment to be fully available #38
Add a watch function to wait for a deployment to be fully available #38
Conversation
bb579bc
to
309e13c
Compare
Codecov Report
@@ Coverage Diff @@
## master #38 +/- ##
=======================================
Coverage 75.23% 75.23%
=======================================
Files 4 4
Lines 323 323
=======================================
Hits 243 243
Misses 80 80 Continue to review full report at Codecov.
|
Thanks for the PR. I think it makes a lot of sense indeed. I merely wonder if this could create surprises for people used to the previous behavior? |
You're welcome! I didn't change the behavior of any functions but indeed it can be redundant with the Anyway the whole Kubernetes integration is now a bit messy because it has multiple words for the same thing (cf. Maybe we could start some cleanup on that in another PR to put things at the right place to be more understandable. We could keep the backward compatibility by using the same trick as done here. What do you think about that? |
Great!
MUCH AGREEEDDD! Sorry I had to yell that one because I really agree :D The bunch of probes/actions at the top level (those In effect, I believe these actions should be marked deprecated altogether. I prefer the approach we took by having actions/probes per entities (pods, etc.). Maybe worth an issue to keep the discussion going and gather community consensus? Thanks again for the nice spirit :) |
Incidentally this branc hlikely need a rebase after the merge we did from a different PR. sorry :/ |
Yes, definitely, I can open one if you want. And of course I can help to rework the repository too!
No problem, I'll rebase in a few minutes. |
309e13c
to
37455de
Compare
Rebased! |
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
Missing the changelog entry I believe? :)
5da2e15
to
0f94d45
Compare
Signed-off-by: Devatoria <joris.bonnefoy@datadoghq.com>
0f94d45
to
7311872
Compare
Oops, good catch. Done. |
Cheers |
Here's a small PR to add the same feature as
deployment_is_not_fully_available
function but to wait for a deployment to be fully available instead.It aims to be used as a probe in the steady state hypothesis to wait for the deployment to be healthy after some actions, like after killing a pod. It avoids to use the
pauses
field which can be really annoying when running multiple experiments since it takes a fixed time.