Pipeline: FR: Allow Resources to be declared as "optional"

Created on 30 Apr 2019  路  5Comments  路  Source: tektoncd/pipeline

Expected Behavior

Task authors should be able to declare some Inputs as "optional".

Actual Behavior

Today all declared input resources must be supplied.

kinfeature

Most helpful comment

Example use-cases:

  • A "deployment" task that can deploy to a specified cluster, but defaults to the cluster it is running in.
  • A task that can optionally upload artifacts to an artifact store, but does not need to.

All 5 comments

Example use-cases:

  • A "deployment" task that can deploy to a specified cluster, but defaults to the cluster it is running in.
  • A task that can optionally upload artifacts to an artifact store, but does not need to.

/assign pritidesai

/kind feature

gke-deploy Task in the catalog could use this functionality: https://github.com/tektoncd/catalog/pull/126

That task would ideally be able to accept either a cluster resource OR the necessary args to configure access to that cluster. Very similar to the first example use case mentioned by @dlorenc

Was this page helpful?
0 / 5 - 0 ratings