-
Notifications
You must be signed in to change notification settings - Fork 327
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
fix(kuma-cp) virtual probes with query #2706
Conversation
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
testserver.WithArgs("--probes"), | ||
testserver.WithHTTPProbes(), | ||
)(k8sCluster)).To(Succeed()) | ||
Eventually(testServerReady, "5s", "100ms").Should(BeTrue()) |
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.
This is already checked in testserver.Install no?
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.
There is a check framework.WaitPodsAvailable(k.opts.Namespace, k.Name())
which is okay if Pod's containers are started but not ready yet, that's why right after testserver.Instsall
the situation is the following:
NAME READY STATUS RESTARTS AGE
test-server-7cbcf597ff-t5b2z 0/2 Running 0 6s
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.
Can we include this check in testserver.Install
? This can be the problem in every usage of TestServer.
The same way VerifyKuma()
should be a part of Kuma()
but that's another story.
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.
Agree. Do you think HTTP probes should be default for test-server
deployment across all e2e tests?
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.
yes
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Codecov Report
@@ Coverage Diff @@
## master #2706 +/- ##
==========================================
- Coverage 51.94% 51.88% -0.06%
==========================================
Files 871 872 +1
Lines 49518 49618 +100
==========================================
+ Hits 25721 25746 +25
- Misses 21716 21782 +66
- Partials 2081 2090 +9
Continue to review full report at Codecov.
|
…dReadyE Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
* fix(kuma-cp) virtual probes with query Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com> * fix(kuma-cp) make check Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com> * fix(kuma-cp) use NamespaceWithSidecarInjection Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com> * fix(kuma-cp) replace WaitUntilPodAvailableE with a custom WaitUntilPodReadyE Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com> * fix(kuma-cp) probes are default for test-server Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com> (cherry picked from commit 0bacb2a)
* fix(kuma-cp) virtual probes with query Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com> * fix(kuma-cp) make check Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com> * fix(kuma-cp) use NamespaceWithSidecarInjection Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com> * fix(kuma-cp) replace WaitUntilPodAvailableE with a custom WaitUntilPodReadyE Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com> * fix(kuma-cp) probes are default for test-server Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
* fix(kuma-cp) virtual probes with query Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com> * fix(kuma-cp) make check Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com> * fix(kuma-cp) use NamespaceWithSidecarInjection Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com> * fix(kuma-cp) replace WaitUntilPodAvailableE with a custom WaitUntilPodReadyE Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com> * fix(kuma-cp) probes are default for test-server Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Summary
When configuring readiness or liveness httpGet probes in Kubernetes
path
could consist ofpath + query
, but when configuringpath
for Envoy route matching it's strictly onlypath
(withoutquery
). That's why for probes withquery
matching didn't work properly.Full changelog
Issues resolved
N/A
Documentation
N/A
Testing
Backwards compatibility
backport-to-stable
label if the code is backwards compatible. Otherwise, list breaking changes.