-
Notifications
You must be signed in to change notification settings - Fork 590
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
Document running e2e test with non gcloud cluster #1833
Comments
/assign @Fredy-Z Let me know if I am missing something. I would happy to test it |
/assign @grantr |
I think it's line 327-332 that caused the script not being able to run without @adrcunha do you remember why we need the cluster admin role in the e2e tests? |
It doesn't make sense, this is old code. Are you sure you're not creating a cluster or. nstalling Knative in a non-standard way?
Because it's required to install Knative. That's been this way since at least for a year. If this is broken, almost all E2E tests should be broken then. |
Oops, my mistake. I interpreted |
The README file doesn't mention it, but |
I double-checked the Knative installation guidance for different Kubernetes vendors in https://knative.dev/docs/install/, it seems the cluster admin role is only required by GKE (or the document is wrong?) Further more, I tried to comment out line 327-332, install a This experiment does prove that knative/test-infra#1339 can make |
@Fredy-Z @grantr @adrcunha thank you fir helping wiht it and testing it. I will try commenting and test it with minikube, external cluster, and other test options like https://kind.sigs.k8s.io If it works I am going to submit PR |
I have tested with kind cluster and could nto run until commented out the lines 327-332 in vendor/knative.dev/test-infra/scripts/e2e-tests.sh # If cluster admin role isn't set, this is a brand new cluster
# Setup the admin role and also KO_DOCKER_REPO
if [[ -z "$(kubectl get clusterrolebinding cluster-admin-binding 2> /dev/null)" ]]; then
acquire_cluster_admin_role ${k8s_user} ${E2E_CLUSTER_NAME} ${E2E_CLUSTER_REGION} ${E2E_CLUSTER_ZONE}
kubectl config set-context ${k8s_cluster} --namespace=default
# Incorporate an element of randomness to ensure that each run properly publishes images.
export KO_DOCKER_REPO=gcr.io/${E2E_PROJECT_ID}/${E2E_BASE_NAME}-e2e-img/${RANDOM}
fi Then it started tests until this error below - is it the error you see @Fredy-Z ?
|
I was looking for the first error - it seems to be
any idea what could be causing
https://github.com/knative/eventing/blob/master/test/e2e/broker_default_test.go#L141 |
For me the first error I get is this one:
|
which is fixed by running the tests from the eventing root dir:
|
I managed to get it to work (with a few hacks) by using:
is there any reason to use the |
This issue is related: #1862 |
No. You actually shouldn't use the script if.you have an env setup. That's why I said the readme is outdated; see the one in serving, which mentions exactly what I just said. |
@Fredy-Z could you update the readme? |
This is one of the goals of the knative-sandbox/integration repo. |
This issue is stale because it has been open for 90 days with no |
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
Problem
Following https://github.com/knative/eventing/tree/master/test
used
./e2e-tests.sh --run-tests
but fails as I do not have gcloud - I do have k8s cluster $KUBECONFIGand with --skip-knative-setup
Persona:
Which persona is this feature for?
Contributor
Exit Criteria
A measurable (binary) test that would indicate that the problem has been resolved.
Can run any k8s cluster
Time Estimate (optional):
How many developer-days do you think this may take to resolve?
1
Additional context (optional)
Add any other context about the feature request here.
Helps contributors that do not have gcloud account to contribute
The text was updated successfully, but these errors were encountered: