-
Notifications
You must be signed in to change notification settings - Fork 71
Use create jobs command instead of run pods in e2e testing #445
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
Conversation
✅ Deploy Preview for kubernetes-sigs-lws canceled.
|
@Edwinhr716 @kerthcet would you mind having a look at this PR, when you have a chance?. |
test/e2e/e2e_test.go
Outdated
@@ -363,23 +363,23 @@ var _ = ginkgo.Describe("leaderWorkerSet e2e tests", func() { | |||
gomega.Eventually(verifyMetricsServerStarted).Should(gomega.Succeed()) | |||
|
|||
ginkgo.By("creating the curl-metrics pod to access the metrics endpoint") |
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.
curl-metrics job
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.
Thank you for review. Updated.
e7a9686
to
8e65839
Compare
curl-metrics test tries to run a curl command to collect the metrics and it is intended to be short lived. This is typical use case for jobs rather than pods. This commit modifies the test to run job by using kubectl create job command. Besides, kubectl run is not recommended.
Default nginx image requires privileged access in the pod which is unwanted and not recommended even in testing environments. This commit switches to nginxinc/nginx-unprivileged that installs nginx in an unprivileged way. This commit also updates the nginx version to 1.27 instead of the very old 1.14.2
8e65839
to
f49e150
Compare
This is known flakiness |
I will try to investigate the flakiness tomorrow |
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
/approve
Thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ardaguclu, kerthcet The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
What this PR does / why we need it
curl-metrics test tries to run a curl command to collect the metrics and
it is intended to be short lived. This is typical use case for jobs rather
than pods. This PR modifies the test to run job by using
kubectl create job
command. Besides, kubectl run is not recommended.
Additionally, Default nginx image requires privileged access in the pod which is
unwanted and not recommended even in testing environments.
This PR switches to
nginxinc/nginx-unprivileged
that installs nginxin an unprivileged way. This PR also updates the nginx version to 1.27
instead of the very old 1.14.2 (we only need to update the e2e tests, but just to
align all the pieces, this PR switches everywhere to the same version).
This PR must no affect on any functionality or any test.
Does this PR introduce a user-facing change?