tektoncd/pipeline

Should it be possible to create a `Pipeline` without any `Task` ?

Open

#7,375 opened on Nov 16, 2023

View on GitHub
 (4 comments) (1 reaction) (1 assignee)Go (1,943 forks)auto 404
area/apigood first issuehelp wantedkind/question

Repository metrics

Stars
 (9,013 stars)
PR merge metrics
 (PR metrics pending)

Description

Given the following Pipeline, should it fail to create or succeed ? It is documented that tasks are required, so possible, it should fail to create. As of today, it does not.

apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
  name: testing
  namespace: default
spec:
  params:
    - name: abc
      type: string
    - description: ku
      name: abc1
      type: string

A follow-up question is: A Pipeline with no Task but one or more finally Task, should it fail to create or succeed ?

Contributor guide