Skip to content

Instantly share code, notes, and snippets.

@cdbkr
Created November 25, 2019 10:26
Show Gist options
  • Save cdbkr/3614d944254a9b3dfd5d60f63368f868 to your computer and use it in GitHub Desktop.
Save cdbkr/3614d944254a9b3dfd5d60f63368f868 to your computer and use it in GitHub Desktop.
type TaskSpec struct {
// Inputs is an optional set of parameters and resources which must be
// supplied by the user when a Task is executed by a TaskRun.
// +optional
Inputs *Inputs `json:"inputs,omitempty"`
// Outputs is an optional set of resources and results produced when this
// Task is run.
// +optional
Outputs *Outputs `json:"outputs,omitempty"`
// Steps are the steps of the build; each step is run sequentially with the
// source mounted into /workspace.
Steps []Step `json:"steps,omitempty"`
// Volumes is a collection of volumes that are available to mount into the
// steps of the build.
Volumes []corev1.Volume `json:"volumes,omitempty"`
// StepTemplate can be used as the basis for all step containers within the
// Task, so that the steps inherit settings on the base container.
StepTemplate *corev1.Container `json:"stepTemplate,omitempty"`
// Sidecars are run alongside the Task's step containers. They begin before
// the steps start and end after the steps complete.
Sidecars []corev1.Container `json:"sidecars,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment