1313 and finally deprovisions the ROSA cluster.
1414 params :
1515 - name : SNAPSHOT
16- description : ' The JSON string representing the snapshot of the application under test (includes lightspeed-stack and llama-stack images).'
17- default : ' {"components": [{"name":"lightspeed-stack", "containerImage": "quay.io/example/lightspeed-stack:latest"}, {"name":"llama-stack", "containerImage": "quay.io/example/llama-stack:latest"}]}'
16+ description : ' The JSON string representing the snapshot of the application under test (includes lightspeed-stack image).'
17+ default : ' {"components": [{"name":"lightspeed-stack", "containerImage": "quay.io/example/lightspeed-stack:latest"}]}'
18+ type : string
19+ - name : llama-stack-image
20+ description : ' Llama-stack container image (hardcoded; not from SNAPSHOT).'
21+ default : ' quay.io/rhoai/odh-llama-stack-core-rhel9:rhoai-3.3'
1822 type : string
1923 - name : test-name
2024 description : ' The name of the test corresponding to a defined Konflux integration test.'
7983 - name : instanceType
8084 value : " m5.large"
8185 - name : get-stack-images
82- description : Extract lightspeed-stack and llama-stack images from SNAPSHOT
86+ description : Extract lightspeed-stack image and commit from SNAPSHOT ( llama-stack image is from pipeline param)
8387 runAfter :
8488 - provision-cluster
8589 params :
9195 results :
9296 - name : lightspeed-stack-image
9397 value : " $(steps.get-stack-images.results.lightspeed-stack-image)"
94- - name : llama-stack-image
95- value : " $(steps.get-stack-images.results.llama-stack-image)"
9698 - name : commit
9799 value : " $(steps.get-stack-images.results.commit)"
98100 params :
@@ -112,16 +114,12 @@ spec:
112114 - name : lightspeed-stack-image
113115 type : string
114116 description : " lightspeed-stack container image from snapshot"
115- - name : llama-stack-image
116- type : string
117- description : " llama-stack container image from snapshot"
118117 - name : commit
119118 type : string
120119 description : " commit sha to be used to store artifacts"
121120 script : |
122121 dnf -y install jq
123122 echo -n "$(jq -r --arg n "lightspeed-stack" '.components[] | select(.name == $n) | .containerImage // ""' <<< "$SNAPSHOT")" > $(step.results.lightspeed-stack-image.path)
124- echo -n "$(jq -r --arg n "llama-stack" '.components[] | select(.name == $n) | .containerImage // ""' <<< "$SNAPSHOT")" > $(step.results.llama-stack-image.path)
125123 echo -n "$(jq -r --arg n "lightspeed-stack" '.components[] | select(.name == $n) | .source.git.revision // "latest"' <<< "$SNAPSHOT")" > $(step.results.commit.path)
126124 - name : lightspeed-stack-integration-tests
127125 description : Task to run integration tests from lightspeed-stack repository
@@ -131,7 +129,7 @@ spec:
131129 - name : lightspeedstackimage
132130 value : $(tasks.get-stack-images.results.lightspeed-stack-image)
133131 - name : llamastackimage
134- value : $(tasks.get-stack-images.results .llama-stack-image)
132+ value : $(params .llama-stack-image)
135133 - name : commit
136134 value : $(tasks.get-stack-images.results.commit)
137135 - name : namespace
0 commit comments