From ad4ce5d318ae6abd2b73ed85599623ed17ecb71f Mon Sep 17 00:00:00 2001 From: serverless-qe Date: Sun, 10 Mar 2024 11:42:13 -0400 Subject: [PATCH] chore: patch func-deploy task to use midstream specific 1.32.0 kn client image --- .../task/func-deploy/0.1/func-deploy-pac.yaml | 2 +- .../task/func-deploy/0.1/func-deploy.yaml | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/pkg/pipelines/resources/tekton/task/func-deploy/0.1/func-deploy-pac.yaml b/pkg/pipelines/resources/tekton/task/func-deploy/0.1/func-deploy-pac.yaml index 46c5c0882d..32d6ccc849 100644 --- a/pkg/pipelines/resources/tekton/task/func-deploy/0.1/func-deploy-pac.yaml +++ b/pkg/pipelines/resources/tekton/task/func-deploy/0.1/func-deploy-pac.yaml @@ -24,7 +24,7 @@ spec: description: The workspace containing the function project steps: - name: func-deploy - image: "registry.redhat.io/openshift-serverless-1/client-kn-rhel8@sha256:aa63566b385616dfd3518aeb26ce192a3374c389a8ce60406289270b59c215f8" + image: "registry.redhat.io/openshift-serverless-1/client-kn-rhel8@sha256:02b3760cf2c41a9b94eaf71fbd5be2c98451a94384f1e830bab78f4ce2c3c21f" env: - name: FUNC_IMAGE value: "$(params.image)" diff --git a/pkg/pipelines/resources/tekton/task/func-deploy/0.1/func-deploy.yaml b/pkg/pipelines/resources/tekton/task/func-deploy/0.1/func-deploy.yaml index e53ddadb06..6fc62040b1 100644 --- a/pkg/pipelines/resources/tekton/task/func-deploy/0.1/func-deploy.yaml +++ b/pkg/pipelines/resources/tekton/task/func-deploy/0.1/func-deploy.yaml @@ -24,6 +24,19 @@ spec: description: The workspace containing the function project steps: - name: func-deploy - image: "ghcr.io/knative/func/func:latest" - script: | - func deploy --verbose --build=false --push=false --path=$(params.path) --remote=false --image="$(params.image)" + image: "registry.redhat.io/openshift-serverless-1/client-kn-rhel8@sha256:02b3760cf2c41a9b94eaf71fbd5be2c98451a94384f1e830bab78f4ce2c3c21f" + env: + - name: FUNC_IMAGE + value: "$(params.image)" + - name: HOME + value: "/tmp" + command: + - /ko-app/kn + args: + - func + - deploy + - --verbose + - --build=false + - --push=false + - --path=$(params.path) + - --remote=false