1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-29 06:34:08 +00:00
catalog/task/knctl-deploy/0.1
pratap0007 780c191f57 Modifies knctl task according to the new reorg proposal
Changes include:
  - adds version label
  - adds a minimum pipeline versions supported by the task
  - adds tags for task
  - adds display name for task
  - modified description to add a summary

This patch moves the knctl files to the task directory and
renames the directory
  - The directory name is changed to match the resource name
  - Modifies the path for install task command in readme file

Issue: #386

Signed-off-by: Shiv Verma <shverma@redhat.com>
2020-07-10 22:06:57 +01:00
..
knctl-deploy.yaml Modifies knctl task according to the new reorg proposal 2020-07-10 22:06:57 +01:00
README.md Modifies knctl task according to the new reorg proposal 2020-07-10 22:06:57 +01:00

Knative with knctl

This Task deploys (or update) a Knative service. It uses knctl for that, and supports only the deploy subcommand as of today.

Install the Task

kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/task/knctl-deploy/0.1/knctl-deploy.yaml

Parameters

  • service:: The name of the service to deploy

Resources

Inputs

  • image: A image-type PipelineResource specifying the location of the service image to deploy.

Usage

This TaskRun runs the Task to deploy the given image as a Knative service.

apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: knctl-deploy-my-service
spec:
  taskRef:
    name: knctl-deploy
  params:
  - name: service
    value: my-service
  resources:
    inputs:
    - name: image
      resourceSpec:
        type: image
        params:
        - name: url
          value: gcr.io/my-repo/my-service-image

In this example, the Image resource has to be built before hand, most likely using a previous task.