-
Notifications
You must be signed in to change notification settings - Fork 4.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
OCPBUGS-43777: apiserver: add tests to verify kube-apiserver is accessible via different endpoints #29339
OCPBUGS-43777: apiserver: add tests to verify kube-apiserver is accessible via different endpoints #29339
Conversation
@vrutkovs: This pull request references Jira Issue OCPBUGS-43777, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
24188fa
to
6252a14
Compare
/retest |
Job Failure Risk Analysis for sha: 6252a14
|
test/extended/apiserver/access.go
Outdated
} else { | ||
apiPath = strings.Replace(externalAPIUrl.Host, "api.", "api-int.", 1) | ||
} |
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.
Is api-int.*
always going to resolve to the internal API server endpoint?
Would pulling the internal API server URL using infra.Status.APIServerInternalURL
be more reflective of the flow that a user/client may attempt to take if they were to look at the Infrastructure
API?
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, good point. iiuc Hypershift may use a different URL for internal URL
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.
Fixed in e1fd7a8
6252a14
to
e1fd7a8
Compare
Job Failure Risk Analysis for sha: e1fd7a8
|
e1fd7a8
to
c030cf7
Compare
Job Failure Risk Analysis for sha: c030cf7
|
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.
Changes look reasonable to me.
/lgtm
c030cf7
to
587d445
Compare
Job Failure Risk Analysis for sha: 587d445
|
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
"github.com/openshift/origin/test/extended/util/image" | ||
) | ||
|
||
var _ = g.Describe("[Conformance][sig-api-machinery][Feature:APIServer] kube-apiserver should be accessible via", func() { |
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 you add a comment describing the need for a specific one-off test to verify that the certificates function properly after rotation as you indicated in slack? It's not obvious. After that I think it's good to approve.
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
Add tests which check that kube-apiserver is reachable via service network, external and internal api endpoints
587d445
to
885d4a4
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, everettraven, vrutkovs 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 |
/label acknowledge-critical-fixes-only |
@vrutkovs: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
b573a5b
into
openshift:master
@vrutkovs: Jira Issue OCPBUGS-43777: Some pull requests linked via external trackers have merged: The following pull requests linked via external trackers have not merged: These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with Jira Issue OCPBUGS-43777 has not been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[ART PR BUILD NOTIFIER] Distgit: openshift-enterprise-tests |
Add tests which check that kube-apiserver is reachable via service network, external and internal api endpoints.
In standarf e2e test flow this is being verified by monitor test, but cert rotation tests are disruptive and can't observe the cluster when time is being skewed to emulate age. As a result, these tests need to be oneshot verification tests