Repository navigation
e2e: run the functional suite against a real OCP cluster - #559
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gauron99 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 |
Add hack/openshift/ to run the e2e suite against an existing OpenShift cluster an engineer is oc-login'd to: - prepare-ocp-cluster.sh: idempotent, env-gated setup. Installs Gitea (+ kube-public/gitea-endpoint ConfigMap), Red Hat OpenShift Pipelines, and (optionally) CMA for the keda deployer. No registry is deployed: the suite pushes to ttl.sh with on-cluster builds (FUNC_REMOTE=true). - run-e2e-tests.sh: sets REGISTRY to a fresh ttl.sh namespace, DEFAULT_DEPLOYER=raw, FUNC_REMOTE=true and FUNC_MANAGEMENT_DISABLED=true, and execs make test-e2e. - Makefile: pass E2E_SKIP and STALE_FUNCTION_IMAGE through to ginkgo. The default E2E_SKIP drops specs that cannot work under FUNC_REMOTE=true (details in run-e2e-tests.sh): the SSH-repository specs (need an exposed SSH endpoint), Middleware Update and registry-auth-secret (their stale-CLI seed premise breaks remotely), and the monorepo subdirectory spec (the remote seed deploy leaves the function name out of the committed func.yaml, so the operator's describe fails). The middleware-rebuild spec self-skips while STALE_FUNCTION_IMAGE is unset.
9b93876 to
a4623a5
Compare
|
/hold to merge after functions-dev#269 gets propagated downstream |
|
the E2E_SKIP in makefile is coming in via #579 |
|
/lgtm |
|
/unhold |
|
@gauron99: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Add hack/openshift/ to run the e2e suite against an existing OpenShift cluster an engineer is oc-login'd to:
prepare-ocp-cluster.sh: idempotent, env-gated setup. Installs Gitea (+ kube-public/gitea-endpoint ConfigMap), Red Hat OpenShift Pipelines, and (optionally) CMA for the keda deployer. No registry is deployed: the suite pushes to ttl.sh with on-cluster builds (FUNC_REMOTE=true).
run-e2e-tests.sh: sets REGISTRY to a fresh ttl.sh namespace, DEFAULT_DEPLOYER=raw, FUNC_REMOTE=true and FUNC_MANAGEMENT_DISABLED=true, and execs make test-e2e.
The default E2E_SKIP drops specs that cannot work under FUNC_REMOTE=true (currently -- details in run-e2e-tests.sh): the SSH-repository specs (need an exposed SSH endpoint), Middleware Update and registry-auth-secret (their stale-CLI seed premise breaks remotely), and the monorepo subdirectory spec (the remote seed deploy leaves the function name out of the committed func.yaml, so the operator's describe fails). The middleware-rebuild spec self-skips while STALE_FUNCTION_IMAGE is unset.