-
Notifications
You must be signed in to change notification settings - Fork 2.1k
add check for oc login -u kubeadmin to installer templates #2361
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 check for oc login -u kubeadmin to installer templates #2361
Conversation
|
I think we want to have a wait like this in the installer in Go and/or have an e2e test that confirms successful login (skipped if there's no |
aaa63ad to
70170f8
Compare
|
@wking, yes, I am planning on adding an e2e test for this, also enabling some (currently skipped?) checks that the console is accessible (or writing a new check). This was super-easy to add, though, and would catch an error b4 running the suite, for quicker results. I have no problem abandoning this in favor of adding a proper e2e check. |
I'm fine with this as long as you'll remember to remove it when the real waiter and tester land ;).
Quicker? By my reading this would loop forever, to eventually be killed by the whole test timing out. Maybe you wanted a shorter timeout for the login loop? |
887df6f to
11e6e98
Compare
11e6e98 to
43c7eda
Compare
|
@wking, the php image check will also loop until test timeout, I'm not modifying that here, though. |
The php check is from #2269, and the intention is "wait until the cluster is up before running the e2e tests, because we don't currently have a reliable test for that", not "test if the registry is working". |
ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml
Outdated
Show resolved
Hide resolved
43c7eda to
2d28892
Compare
|
@wking I know that to be true (the php image check tests that cluster is back to stable state after a config change), I said it's a registry check, not registry test. Same with cluster-osin-operator configuring the kubeadmin user, it's essentially a patch, so cluster is in a transitional state for a short time. A successful |
| while [[ "${NOW}" -lt "${TARGET}" ]]; do | ||
| # wait until oc login -n kubeadmin succeeds | ||
| if oc login -u kubeadmin -p "${password}"; then | ||
| if ! oc login -u system:admin; then |
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 this a check to see if the kubeadmin login granted you sufficient authorization?
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 to set user back to system:admin for the test suite, to keep it as it was before this check.
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sallyom, wking The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@sallyom: Updated the following 2 configmaps:
DetailsIn 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 kubernetes/test-infra repository. |
This PR adds a check for logging in as user
kubeadminfor 4.0 cluster-launch-installer-* templates.@wking thanks for your review