1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-12-03 07:00:01 +00:00
catalog/knctl
Vincent Demeester 5c2ab7d6c3 Linting yamls with yamllint 🏷
Next update of plumbing will enable `yamllint` check, so this make
sure we have linted yaml before 👼

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2019-11-15 09:39:31 -06:00
..
knctl-deploy.yaml Linting yamls with yamllint 🏷 2019-11-15 09:39:31 -06:00
README.md Initial knctl task definition 🌮 2019-06-06 11:52:06 -05: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/knctl/knctl-deploy.yaml

Inputs

Parameters

  • service:: The name of the service to deploy

Resources

  • 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/v1alpha1
kind: TaskRun
metadata:
  name: knctl-deploy-my-service
spec:
  taskRef:
    name: knctl-deploy
  inputs:
    params:
    - name: service
      value: my-service
    resources:
    - name: images
      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.