-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
adjust the expected output based kubectl verison #56508
Conversation
/assign @pwittrock |
@spiffxp @pwittrock PTAL |
{"Controlled By:", "ReplicationController/redis-master"}, | ||
{"Image:", redisImage}, | ||
{"State:", "Running"}, | ||
{"QoS Class:", "BestEffort"}, | ||
} | ||
}...) |
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.
From checkOutput
code, I don't think the order matters. Would you check again? If so, we can just append it at the end.
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.
The order matters here.
The index of the actual output always increases after a match, so the order matters.
https://github.com/mengqiy/kubernetes/blob/3d5ff42cc5cc0a71668e9490ae8cb14b644d02e7/test/e2e/kubectl/kubectl.go#L1759
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.
ok
test/e2e/kubectl/kubectl.go
Outdated
@@ -847,6 +847,9 @@ metadata: | |||
|
|||
// Pod | |||
forEachPod(func(pod v1.Pod) { | |||
gte, err := framework.KubectlVersionGTE(utilversion.MustParseSemantic("v1.9.0-alpha.0")) |
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 affected by efbfead#diff-fde2ce0a73639d19347a5ea6fe001ba6 which is in v1.9.0-alpha.2
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.
Done
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.
Server version should be checked instead
cc @crimsonfaith91: kubectl skew test failed due to the removal of created-by annotation |
test/e2e/kubectl/kubectl.go
Outdated
@@ -847,6 +847,9 @@ metadata: | |||
|
|||
// Pod | |||
forEachPod(func(pod v1.Pod) { | |||
gte, err := framework.KubectlVersionGTE(utilversion.MustParseSemantic("v1.9.0-alpha.2")) |
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.
Server version should be checked instead
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.
Why checking server version? The describe behavior is purely client-side, isn't?
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.
Responded here: #56508 (comment)
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.
Actually, check both server and client. Neither 1.9 server nor 1.9 client will print "Created By:" in kubectl describe
against any server/clients.
/retest |
In failing tests, 1.8 clients are tested against 1.9 servers (in fact 1.10/master, but technically it's 1.9), see log here: https://storage.googleapis.com/kubernetes-jenkins/logs/ci-kubernetes-e2e-gce-master-new-gci-kubectl-skew/3839/build-log.txt As I mentioned in #56414 (comment), this is affected by #54445 (not #42849), where The failure is because 1.9 server doesn't add those created-by annotations, therefore when 1.8 client parses annotations, it doesn't print "Created By: xxx". |
e241f46
to
7a658dc
Compare
Done. |
@@ -847,6 +847,10 @@ metadata: | |||
|
|||
// Pod | |||
forEachPod(func(pod v1.Pod) { | |||
servergte, err := framework.ServerVersionGTE(utilversion.MustParseSemantic("v1.9.0-alpha.2"), c.Discovery()) |
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 err needs to be checked too
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.
Done
One last comment and LGTM otherwise |
Everything looks good to me! |
Someone please apply the lgtm label. |
/lgtm |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: crimsonfaith91, mengqiy Assign the PR to them by writing Associated issue: 56414 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
@jpbetz Can you please put this in the 1.8 milestone? |
/kind cleanup |
/status approved-for-milestone |
You must be a member of the kubernetes/kubernetes-milestone-maintainers github team to add status labels. |
The bot is asking for so many labels :-/
The bot is asking for |
[MILESTONENOTIFIER] Milestone Pull Request Current @crimsonfaith91 @janetkuo @mengqiy @pwittrock @spiffxp Pull Request Labels
|
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. |
Fixes #56414
/assign @spiffxp