From ed28493b36db4499c497c2f991355c5c0545cda1 Mon Sep 17 00:00:00 2001 From: serverless-qe Date: Thu, 23 May 2024 10:00:56 -0400 Subject: [PATCH] chore: patch func-deploy task to use midstream specific 1.33.0 kn client image --- .../task/func-deploy/0.1/func-deploy-pac.yaml | 19 ++++++++++++++++--- .../task/func-deploy/0.1/func-deploy.yaml | 19 ++++++++++++++++--- 2 files changed, 32 insertions(+), 6 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 cf13f7ad06..588dbf38f3 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,6 +24,19 @@ spec: description: The workspace containing the function project steps: - name: func-deploy - image: "ghcr.io/knative/func-utils:latest" - script: | - deploy $(params.path) "$(params.image)" + image: "registry.redhat.io/openshift-serverless-1/client-kn-rhel8@sha256:929adc2cf43f3ddcc543955338a51b0df346e0f2466ae4e5db346f242eb7ef6b" + 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 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 e3f6d5f88e..34267fc9d8 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-utils:latest" - script: | - deploy $(params.path) "$(params.image)" + image: "registry.redhat.io/openshift-serverless-1/client-kn-rhel8@sha256:929adc2cf43f3ddcc543955338a51b0df346e0f2466ae4e5db346f242eb7ef6b" + 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