@@ -6,9 +6,8 @@ metadata:
66spec :
77 description : |
88 This pipeline automates the process of running end-to-end tests for Lightspeed Stack
9- using a ROSA (Red Hat OpenShift Service on AWS cluster. The pipeline provisions
10- the ROSA cluster, installs the Lightspeed Stack, runs the tests, collects artifacts,
11- and finally deprovisions the ROSA cluster.
9+ using an OpenShift CI HyperShift cluster. The pipeline provisions the cluster,
10+ installs the Lightspeed Stack, runs the tests, and collects artifacts.
1211 params :
1312 - name : SNAPSHOT
1413 description : ' The JSON string representing the snapshot of the application under test (includes lightspeed-stack image).'
@@ -24,62 +23,45 @@ spec:
2423 - name : namespace
2524 description : ' Namespace to run tests in'
2625 default : ' lightspeed-stack'
26+ - name : ocp-version
27+ description : ' OpenShift minor version for the ephemeral HyperShift cluster.'
28+ default : ' 4.19'
29+ type : string
30+ - name : compute-node-type
31+ description : ' AWS instance type for the ephemeral HyperShift compute nodes.'
32+ default : ' m5.xlarge'
33+ type : string
34+ - name : hosted-management-cluster
35+ description : ' Hosted management cluster used to provision the ephemeral cluster.'
36+ default : ' hosted-mgmt2'
37+ type : string
2738 tasks :
28- - name : eaas- provision-space
39+ - name : provision-cluster
2940 taskRef :
3041 resolver : git
3142 params :
3243 - name : url
33- value : https://github.com/konflux-ci/build-definitions.git
44+ value : https://github.com/openshift/ konflux-tasks
3445 - name : revision
3546 value : main
3647 - name : pathInRepo
37- value : task/eaas- provision-space /0.1/eaas- provision-space .yaml
48+ value : tasks/ provision-ephemeral-cluster /0.1/provision-ephemeral-cluster .yaml
3849 params :
39- - name : ownerKind
40- value : PipelineRun
4150 - name : ownerName
4251 value : $(context.pipelineRun.name)
4352 - name : ownerUid
4453 value : $(context.pipelineRun.uid)
45- - name : provision-cluster
46- runAfter :
47- - eaas-provision-space
48- taskSpec :
49- results :
50- - name : clusterName
51- value : " $(steps.create-cluster.results.clusterName)"
52- steps :
53- - name : pick-version
54- ref :
55- resolver : git
56- params :
57- - name : url
58- value : https://github.com/konflux-ci/build-definitions.git
59- - name : revision
60- value : main
61- - name : pathInRepo
62- value : stepactions/eaas-get-latest-openshift-version-by-prefix/0.1/eaas-get-latest-openshift-version-by-prefix.yaml
63- params :
64- - name : prefix
65- value : " 4.19."
66- - name : create-cluster
67- ref :
68- resolver : git
69- params :
70- - name : url
71- value : https://github.com/konflux-ci/build-definitions.git
72- - name : revision
73- value : main
74- - name : pathInRepo
75- value : stepactions/eaas-create-ephemeral-cluster-hypershift-aws/0.1/eaas-create-ephemeral-cluster-hypershift-aws.yaml
76- params :
77- - name : eaasSpaceSecretRef
78- value : $(tasks.eaas-provision-space.results.secretRef)
79- - name : version
80- value : " $(steps.pick-version.results.version)"
81- - name : instanceType
82- value : " m5.large"
54+ - name : workflow
55+ value : hypershift-hostedcluster-workflow
56+ - name : clusterProfile
57+ value : aws-konflux-prod
58+ - name : timeout
59+ value : 1h
60+ - name : releases
61+ value : >-
62+ {"latest":{"release":{"channel":"stable","version":"$(params.ocp-version)","architecture":"multi"}}}
63+ - name : env
64+ value : ' {"COMPUTE_NODE_TYPE":"$(params.compute-node-type)","HOSTED_MANAGEMENT_CLUSTER":"$(params.hosted-management-cluster)"}'
8365 - name : get-stack-images
8466 description : Extract lightspeed-stack image and commit from SNAPSHOT (OGX runs from source in-pod)
8567 runAfter :
@@ -180,10 +162,10 @@ spec:
180162 value : $(tasks.get-stack-images.results.commit)
181163 - name : namespace
182164 value : " $(params.namespace)"
183- - name : spaceRequestSecretName
184- value : $(tasks.eaas- provision-space .results.secretRef)
185- - name : clusterName
186- value : $(tasks.provision-cluster.results.clusterName )
165+ - name : clusterCredentialsSecretRef
166+ value : $(tasks.provision-cluster .results.secretRef)
167+ - name : ocp-version
168+ value : $(params.ocp-version )
187169 runAfter :
188170 - echo-integration-params
189171 taskSpec :
@@ -194,9 +176,9 @@ spec:
194176 - name : commit
195177 - name : namespace
196178 type : string
197- - name : spaceRequestSecretName
179+ - name : clusterCredentialsSecretRef
198180 type : string
199- - name : clusterName
181+ - name : ocp-version
200182 type : string
201183 results :
202184 - name : TEST_OUTPUT
@@ -217,25 +199,9 @@ spec:
217199 secret :
218200 secretName : redhat-registry-io-pull-secret
219201 - name : credentials
220- emptyDir : {}
202+ secret :
203+ secretName : $(params.clusterCredentialsSecretRef)
221204 steps :
222- - name : get-kubeconfig
223- ref :
224- resolver : git
225- params :
226- - name : url
227- value : https://github.com/konflux-ci/build-definitions.git
228- - name : revision
229- value : main
230- - name : pathInRepo
231- value : stepactions/eaas-get-ephemeral-cluster-credentials/0.1/eaas-get-ephemeral-cluster-credentials.yaml
232- params :
233- - name : eaasSpaceSecretRef
234- value : $(params.spaceRequestSecretName)
235- - name : clusterName
236- value : " $(params.clusterName)"
237- - name : credentials
238- value : credentials
239205 - name : run-e2e-tests
240206 # onError: continue
241207 # Do not use onError: continue here unless a later step like
@@ -262,7 +228,7 @@ spec:
262228 mountPath : /credentials
263229 env :
264230 - name : KUBECONFIG
265- value : " /credentials/$(steps.get- kubeconfig.results.kubeconfig) "
231+ value : " /credentials/kubeconfig"
266232 - name : ARTIFACT_DIR
267233 value : " /workspace/artifacts"
268234 - name : SUITE_ID
@@ -288,7 +254,7 @@ spec:
288254 echo "[e2e] 2/8 Installing deps (git, tar, jq, curl-minimal, python3, gettext for envsubst)..."
289255 microdnf -y install git tar jq curl-minimal python3 gettext
290256 echo "[e2e] 3/8 Downloading oc client..."
291- curl -sL -o oc.tar.gz https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest-4.19 /openshift-client-linux-amd64-rhel9.tar.gz
257+ curl -sL -o oc.tar.gz https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest-$(params.ocp-version) /openshift-client-linux-amd64-rhel9.tar.gz
292258 tar -xzf oc.tar.gz && chmod +x kubectl oc && mv oc kubectl /usr/local/bin/
293259 echo "[e2e] 4/8 SNAPSHOT (length ${#SNAPSHOT} chars; clone URL fixed — SNAPSHOT is main/upstream, not fork)..."
294260 # Fixed fork + branch: Konflux SNAPSHOT points at main repo/rev, not the PR/fork under test.
@@ -319,7 +285,7 @@ spec:
319285 # - name: credentials
320286 # value: "credentials"
321287 # - name: kubeconfig
322- # value: "$(steps.get- kubeconfig.results.kubeconfig) "
288+ # value: "kubeconfig"
323289 # - name: artifact-dir
324290 # value: "/workspace/konflux-artifacts"
325291 # # validate that the cluster resources are available in another tekton step
@@ -359,4 +325,4 @@ spec:
359325 # - name: revision
360326 # value: main
361327 # - name: pathInRepo
362- # value: stepactions/fail-if-any-step-failed/0.1/fail-if-any-step-failed.yaml
328+ # value: stepactions/fail-if-any-step-failed/0.1/fail-if-any-step-failed.yaml
0 commit comments