# auto generated by script/update-tasks.sh
# DO NOT EDIT: use the script instead
# source: https://raw.githubusercontent.com/openshift/tektoncd-catalog/release-v0.22/task/kn-apply/0.1/kn-apply.yaml
#
---
apiVersion: tekton.dev/v1beta1
kind: ClusterTask
metadata:
  name: kn-apply-v0-22-0
  labels:
    app.kubernetes.io/version: "0.1"
  annotations:
    tekton.dev/pipelines.minVersion: "0.12.1"
    tekton.dev/tags: cli
spec:
  description: >-
    This task deploys a given image to a Knative Service.

    It uses `kn service apply` to create or update given knative service.
  params:
  - name: KN_IMAGE
    description: kn CLI container image to run this task
    default: registry.redhat.io/openshift-serverless-1/client-kn-rhel8@sha256:efb51d4a337566ca8532073cd598cc2cfbbec260f037ce4de19d4c67ee411358
  - name: SERVICE
    description: Knative service name
  - name: IMAGE
    description: Image to deploy
  steps:
  - name: kn
    image: "$(params.KN_IMAGE)"
    command: ["/ko-app/kn"]
    args: ["service", "apply", "$(params.SERVICE)", "--image", "$(params.IMAGE)"]
