1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-24 06:15:46 +00:00
catalog/knctl
ishani2412 c89d3965b7 Improve Readme.md
PR to improve the Readme.md migrating the install task URL from
master to v1beta1

Signed-off-by: ishani2412 <ishani.1613039@kiet.edu>
2020-06-02 09:03:51 +01:00
..
knctl-deploy.yaml Correct knctl sample 2020-04-10 13:08:01 +01:00
README.md Improve Readme.md 2020-06-02 09:03:51 +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/v1beta1/knctl/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.