# auto generated by script/update-tasks.sh
# DO NOT EDIT: use the script instead
# source: https://raw.githubusercontent.com/openshift/tektoncd-catalog/release-v0.24/task/kn-apply/0.1/kn-apply.yaml
#
---
apiVersion: tekton.dev/v1beta1
kind: ClusterTask
metadata:
  name: kn-apply
  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:286f6b4c008307df1bc369891ef9e806050d3a5f5e77ee0c9313ffdb350abbcb
  - 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)"]
