1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00

Fix catalog test for ppc64le

Replace gradle image for gradle-0-4 test.
Add patch command to fix stepaction test.
Add Extra MAVEN_IMAGE parameter and patch command for maven-0-3 test.

Signed-off-by: Sachin Itagi <sachin.itagi@ibm.com>
This commit is contained in:
Sachin Itagi 2024-05-03 08:59:36 +00:00 committed by tekton-robot
parent 9ae5052a37
commit 6fe53389ac
2 changed files with 12 additions and 1 deletions

View File

@ -62,7 +62,7 @@ spec:
- name: PROJECT_DIR
value: "wrapper-test"
- name: GRADLE_IMAGE
value: docker.io/library/eclipse-temurin:17-jdk-alpine@sha256:16d70818ae1d9dfca5e8d05de8e74a23c959ae59968010f013a4cfe5aa5b0038
value: docker.io/library/eclipse-temurin:17-ubi9-minimal@sha256:19c66566a0a802df5674301b223683ffbcf56cf18488a37a21d53e3d09df57d1
workspaces:
- name: source
workspace: shared-workspace

View File

@ -39,3 +39,14 @@ find task/gradle/*/tests/run.yaml | xargs -I{} yq eval '(..|select(.kind?=="Pipe
echo "Add extra BUILDER_IMAGE parameter"
find task/jib-gradle/*/tests/run.yaml | xargs -I{} yq eval '(..|select(.kind?=="Pipeline")|.spec.tasks[1].params) |= . +{"name": "BUILDER_IMAGE","value": env(BUILDER_IMAGE)}' -i {}
echo "Add extra MAVEN_IMAGE parameter for maven-0-3 test"
yq eval '(..|select(.kind?=="Pipeline")|select(.metadata.name?=="jib-maven-test-pipeline"|"maven-test-pipeline")|.spec.tasks[2].params) |= . +{"name": "MAVEN_IMAGE","value": env(MAVEN_IMAGE)}' -i task/maven/0.3/tests/run.yaml
echo "Patch to Enable Step Actions on the cluster"
kubectl patch cm feature-flags -n tekton-pipelines -p '{"data":{"enable-step-actions":"true"}}'
echo "Patch to Disable Affinity Assistant (Needed to allow binding of two PVCs for Maven-0-3 test)"
kubectl patch cm feature-flags -n tekton-pipelines -p '{"data":{"disable-affinity-assistant":"true"}}'