TaskRun [tekton.dev/v1]
- Description
- TaskRun represents a single execution of a Task. TaskRuns are how the steps specified in a Task are executed; they specify the parameters and resources used to run the steps in a Task.
- Type
object
Specification
.spec
- Description
- TaskRunSpec defines the desired state of TaskRun
- Type
object
.spec.computeResources
- Description
- Compute resources to use for this TaskRun
- Type
object
.spec.computeResources.claims
- Description
- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
- Type
array
.spec.computeResources.claims[]
- Description
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- Type
object- Required
name
.spec.computeResources.limits
- Description
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.spec.computeResources.requests
- Description
- Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.spec.debug
- Description
- TaskRunDebug defines the breakpoint config for a particular TaskRun
- Type
object
.spec.debug.breakpoints
- Description
- TaskBreakpoints defines the breakpoint config for a particular Task
- Type
object
.spec.debug.breakpoints.beforeSteps
- Type
array
.spec.debug.breakpoints.beforeSteps[]
- Type
string
.spec.params
- Description
- Params is a list of Param
- Type
array
.spec.params[]
- Description
- Param declares an ParamValues to use for the parameter called name.
- Type
object- Required
namevalue
.spec.podTemplate
- Description
- PodTemplate holds pod specific configuration
- Type
object
.spec.podTemplate.dnsConfig
- Description
- Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.
- Type
object
.spec.podTemplate.dnsConfig.nameservers
- Description
- A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.
- Type
array
.spec.podTemplate.dnsConfig.nameservers[]
- Type
string
.spec.podTemplate.dnsConfig.options
- Description
- A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.
- Type
array
.spec.podTemplate.dnsConfig.options[]
- Description
- PodDNSConfigOption defines DNS resolver options of a pod.
- Type
object
.spec.podTemplate.dnsConfig.searches
- Description
- A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.
- Type
array
.spec.podTemplate.dnsConfig.searches[]
- Type
string
.spec.podTemplate.env
- Description
- List of environment variables that can be provided to the containers belonging to the pod.
- Type
array
.spec.podTemplate.env[]
- Description
- EnvVar represents an environment variable present in a Container.
- Type
object- Required
name
.spec.podTemplate.env[].valueFrom
- Description
- Source for the environment variable's value. Cannot be used if value is not empty.
- Type
object
.spec.podTemplate.env[].valueFrom.configMapKeyRef
- Description
- Selects a key of a ConfigMap.
- Type
object- Required
key
.spec.podTemplate.env[].valueFrom.fieldRef
- Description
- Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
- Type
object- Required
fieldPath
.spec.podTemplate.env[].valueFrom.resourceFieldRef
- Description
- Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
- Type
object- Required
resource
.spec.podTemplate.env[].valueFrom.secretKeyRef
- Description
- Selects a key of a secret in the pod's namespace
- Type
object- Required
key
.spec.podTemplate.hostAliases
- Description
- HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.
- Type
array
.spec.podTemplate.hostAliases[]
- Description
- HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.
- Type
object- Required
ip
.spec.podTemplate.hostAliases[].hostnames
- Description
- Hostnames for the above IP address.
- Type
array
.spec.podTemplate.hostAliases[].hostnames[]
- Type
string
.spec.podTemplate.imagePullSecrets
- Description
- ImagePullSecrets gives the name of the secret used by the pod to pull the image if specified
- Type
array
.spec.podTemplate.imagePullSecrets[]
- Description
- LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
- Type
object
.spec.podTemplate.nodeSelector
- Description
- NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
- Type
object
.spec.podTemplate.tolerations
- Description
- If specified, the pod's tolerations.
- Type
array
.spec.podTemplate.tolerations[]
- Description
- The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
- Type
object
.spec.podTemplate.topologySpreadConstraints
- Description
- TopologySpreadConstraints controls how Pods are spread across your cluster among failure-domains such as regions, zones, nodes, and other user-defined topology domains.
- Type
array
.spec.podTemplate.topologySpreadConstraints[]
- Description
- TopologySpreadConstraint specifies how to spread matching pods among the given topology.
- Type
object- Required
maxSkewtopologyKeywhenUnsatisfiable
.spec.podTemplate.topologySpreadConstraints[].labelSelector
- Description
- LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.
- Type
object
.spec.podTemplate.topologySpreadConstraints[].labelSelector.matchExpressions
- Description
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- Type
array
.spec.podTemplate.topologySpreadConstraints[].labelSelector.matchExpressions[]
- Description
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- Type
object- Required
keyoperator
.spec.podTemplate.topologySpreadConstraints[].labelSelector.matchExpressions[].values
- Description
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- Type
array
.spec.podTemplate.topologySpreadConstraints[].labelSelector.matchExpressions[].values[]
- Type
string
.spec.podTemplate.topologySpreadConstraints[].labelSelector.matchLabels
- Description
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- Type
object
.spec.podTemplate.topologySpreadConstraints[].matchLabelKeys
- Description
- MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).
- Type
array
.spec.podTemplate.topologySpreadConstraints[].matchLabelKeys[]
- Type
string
.spec.sidecarSpecs
- Description
- Specs to apply to Sidecars in this TaskRun. If a field is specified in both a Sidecar and a SidecarSpec, the value from the SidecarSpec will be used. This field is only supported when the alpha feature gate is enabled.
- Type
array
.spec.sidecarSpecs[]
- Description
- TaskRunSidecarSpec is used to override the values of a Sidecar in the corresponding Task.
- Type
object- Required
computeResourcesname
.spec.sidecarSpecs[].computeResources
- Description
- The resource requirements to apply to the Sidecar.
- Type
object
.spec.sidecarSpecs[].computeResources.claims
- Description
- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
- Type
array
.spec.sidecarSpecs[].computeResources.claims[]
- Description
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- Type
object- Required
name
.spec.sidecarSpecs[].computeResources.limits
- Description
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.spec.sidecarSpecs[].computeResources.requests
- Description
- Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.spec.stepSpecs
- Description
- Specs to apply to Steps in this TaskRun. If a field is specified in both a Step and a StepSpec, the value from the StepSpec will be used. This field is only supported when the alpha feature gate is enabled.
- Type
array
.spec.stepSpecs[]
- Description
- TaskRunStepSpec is used to override the values of a Step in the corresponding Task.
- Type
object- Required
computeResourcesname
.spec.stepSpecs[].computeResources
- Description
- The resource requirements to apply to the Step.
- Type
object
.spec.stepSpecs[].computeResources.claims
- Description
- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
- Type
array
.spec.stepSpecs[].computeResources.claims[]
- Description
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- Type
object- Required
name
.spec.stepSpecs[].computeResources.limits
- Description
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.spec.stepSpecs[].computeResources.requests
- Description
- Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.spec.taskRef
- Description
- no more than one of the TaskRef and TaskSpec may be specified.
- Type
object
.spec.taskRef.params
- Description
- Params contains the parameters used to identify the referenced Tekton resource. Example entries might include "repo" or "path" but the set of params ultimately depends on the chosen resolver.
- Type
array
.spec.taskRef.params[]
- Description
- Param declares an ParamValues to use for the parameter called name.
- Type
object- Required
namevalue
.spec.workspaces
- Description
- Workspaces is a list of WorkspaceBindings from volumes to workspaces.
- Type
array
.spec.workspaces[]
- Description
- WorkspaceBinding maps a Task's declared workspace to a Volume.
- Type
object- Required
name
.spec.workspaces[].configMap
- Description
- ConfigMap represents a configMap that should populate this workspace.
- Type
object
.spec.workspaces[].configMap.items
- Description
- items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
- Type
array
.spec.workspaces[].configMap.items[]
- Description
- Maps a string key to a path within a volume.
- Type
object- Required
keypath
.spec.workspaces[].csi
- Description
- CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.
- Type
object- Required
driver
.spec.workspaces[].csi.nodePublishSecretRef
- Description
- nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed.
- Type
object
.spec.workspaces[].csi.volumeAttributes
- Description
- volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.
- Type
object
.spec.workspaces[].emptyDir
- Description
- EmptyDir represents a temporary directory that shares a Task's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir Either this OR PersistentVolumeClaim can be used.
- Type
object
.spec.workspaces[].persistentVolumeClaim
- Description
- PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Either this OR EmptyDir can be used.
- Type
object- Required
claimName
.spec.workspaces[].projected
- Description
- Projected represents a projected volume that should populate this workspace.
- Type
object
.spec.workspaces[].projected.sources
- Description
- sources is the list of volume projections. Each entry in this list handles one source.
- Type
array
.spec.workspaces[].projected.sources[]
- Description
- Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.
- Type
object
.spec.workspaces[].projected.sources[].clusterTrustBundle
- Description
- ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file. Alpha, gated by the ClusterTrustBundleProjection feature gate. ClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector. Kubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time.
- Type
object- Required
path
.spec.workspaces[].projected.sources[].clusterTrustBundle.labelSelector
- Description
- Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as "match nothing". If set but empty, interpreted as "match everything".
- Type
object
.spec.workspaces[].projected.sources[].clusterTrustBundle.labelSelector.matchExpressions
- Description
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- Type
array
.spec.workspaces[].projected.sources[].clusterTrustBundle.labelSelector.matchExpressions[]
- Description
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- Type
object- Required
keyoperator
.spec.workspaces[].projected.sources[].clusterTrustBundle.labelSelector.matchExpressions[].values
- Description
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- Type
array
.spec.workspaces[].projected.sources[].clusterTrustBundle.labelSelector.matchExpressions[].values[]
- Type
string
.spec.workspaces[].projected.sources[].clusterTrustBundle.labelSelector.matchLabels
- Description
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- Type
object
.spec.workspaces[].projected.sources[].configMap
- Description
- configMap information about the configMap data to project
- Type
object
.spec.workspaces[].projected.sources[].configMap.items
- Description
- items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
- Type
array
.spec.workspaces[].projected.sources[].configMap.items[]
- Description
- Maps a string key to a path within a volume.
- Type
object- Required
keypath
.spec.workspaces[].projected.sources[].downwardAPI
- Description
- downwardAPI information about the downwardAPI data to project
- Type
object
.spec.workspaces[].projected.sources[].downwardAPI.items
- Description
- Items is a list of DownwardAPIVolume file
- Type
array
.spec.workspaces[].projected.sources[].downwardAPI.items[]
- Description
- DownwardAPIVolumeFile represents information to create the file containing the pod field
- Type
object- Required
path
.spec.workspaces[].projected.sources[].downwardAPI.items[].fieldRef
- Description
- Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.
- Type
object- Required
fieldPath
.spec.workspaces[].projected.sources[].downwardAPI.items[].resourceFieldRef
- Description
- Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
- Type
object- Required
resource
.spec.workspaces[].projected.sources[].secret
- Description
- secret information about the secret data to project
- Type
object
.spec.workspaces[].projected.sources[].secret.items
- Description
- items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
- Type
array
.spec.workspaces[].projected.sources[].secret.items[]
- Description
- Maps a string key to a path within a volume.
- Type
object- Required
keypath
.spec.workspaces[].projected.sources[].serviceAccountToken
- Description
- serviceAccountToken is information about the serviceAccountToken data to project
- Type
object- Required
path
.spec.workspaces[].secret
- Description
- Secret represents a secret that should populate this workspace.
- Type
object
.spec.workspaces[].secret.items
- Description
- items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
- Type
array
.spec.workspaces[].secret.items[]
- Description
- Maps a string key to a path within a volume.
- Type
object- Required
keypath
.status
- Description
- TaskRunStatus defines the observed state of TaskRun
- Type
object- Required
podName
.status.annotations
- Description
- Annotations is additional Status fields for the Resource to save some additional State as well as convey more information to the user. This is roughly akin to Annotations on any k8s resource, just the reconciler conveying richer information outwards.
- Type
object
.status.artifacts
- Description
- Artifacts are the list of artifacts written out by the task's containers
- Type
object
.status.artifacts.inputs
- Type
array
.status.artifacts.inputs[]
- Description
- Artifact represents an artifact within a system, potentially containing multiple values associated with it.
- Type
object
.status.artifacts.inputs[].values
- Description
- A collection of values related to the artifact
- Type
array
.status.artifacts.inputs[].values[]
- Description
- ArtifactValue represents a specific value or data element within an Artifact.
- Type
object
.status.artifacts.inputs[].values[].digest
- Type
object
.status.artifacts.outputs
- Type
array
.status.artifacts.outputs[]
- Description
- Artifact represents an artifact within a system, potentially containing multiple values associated with it.
- Type
object
.status.artifacts.outputs[].values
- Description
- A collection of values related to the artifact
- Type
array
.status.artifacts.outputs[].values[]
- Description
- ArtifactValue represents a specific value or data element within an Artifact.
- Type
object
.status.artifacts.outputs[].values[].digest
- Type
object
.status.conditions
- Description
- Conditions the latest available observations of a resource's current state.
- Type
array
.status.conditions[]
- Description
- Condition defines a readiness condition for a Knative resource. See: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties
- Type
object- Required
statustype
.status.provenance
- Description
- Provenance contains some key authenticated metadata about how a software artifact was built (what sources, what inputs/outputs, etc.).
- Type
object
.status.provenance.featureFlags
- Description
- FeatureFlags identifies the feature flags that were used during the task/pipeline run
- Type
object
.status.provenance.refSource
- Description
- RefSource identifies the source where a remote task/pipeline came from.
- Type
object
.status.provenance.refSource.digest
- Description
- Digest is a collection of cryptographic digests for the contents of the artifact specified by URI. Example: {"sha1": "f99d13e554ffcb696dee719fa85b695cb5b0f428"}
- Type
object
.status.results
- Description
- Results are the list of results written out by the task's containers
- Type
array
.status.results[]
- Description
- TaskRunResult used to describe the results of a task
- Type
object- Required
namevalue
.status.sidecars
- Description
- The list has one entry per sidecar in the manifest. Each entry is represents the imageid of the corresponding sidecar.
- Type
array
.status.sidecars[]
- Description
- SidecarState reports the results of running a sidecar in a Task.
- Type
object
.status.sidecars[].running
- Description
- Details about a running container
- Type
object
.status.sidecars[].terminated
- Description
- Details about a terminated container
- Type
object- Required
exitCode
.status.sidecars[].waiting
- Description
- Details about a waiting container
- Type
object
.status.spanContext
- Description
- SpanContext contains tracing span context fields
- Type
object
.status.steps
- Description
- Steps describes the state of each build step container.
- Type
array
.status.steps[]
- Description
- StepState reports the results of running a step in a Task.
- Type
object
.status.steps[].inputs
- Type
array
.status.steps[].inputs[]
- Description
- Artifact represents an artifact within a system, potentially containing multiple values associated with it.
- Type
object
.status.steps[].inputs[].values
- Description
- A collection of values related to the artifact
- Type
array
.status.steps[].inputs[].values[]
- Description
- ArtifactValue represents a specific value or data element within an Artifact.
- Type
object
.status.steps[].inputs[].values[].digest
- Type
object
.status.steps[].outputs
- Type
array
.status.steps[].outputs[]
- Description
- Artifact represents an artifact within a system, potentially containing multiple values associated with it.
- Type
object
.status.steps[].outputs[].values
- Description
- A collection of values related to the artifact
- Type
array
.status.steps[].outputs[].values[]
- Description
- ArtifactValue represents a specific value or data element within an Artifact.
- Type
object
.status.steps[].outputs[].values[].digest
- Type
object
.status.steps[].provenance
- Description
- Provenance contains metadata about resources used in the TaskRun/PipelineRun such as the source from where a remote build definition was fetched. This field aims to carry minimum amoumt of metadata in *Run status so that Tekton Chains can capture them in the provenance.
- Type
object
.status.steps[].provenance.featureFlags
- Description
- FeatureFlags identifies the feature flags that were used during the task/pipeline run
- Type
object
.status.steps[].provenance.refSource
- Description
- RefSource identifies the source where a remote task/pipeline came from.
- Type
object
.status.steps[].provenance.refSource.digest
- Description
- Digest is a collection of cryptographic digests for the contents of the artifact specified by URI. Example: {"sha1": "f99d13e554ffcb696dee719fa85b695cb5b0f428"}
- Type
object
.status.steps[].results
- Type
array
.status.steps[].results[]
- Description
- TaskRunResult used to describe the results of a task
- Type
object- Required
namevalue
.status.steps[].running
- Description
- Details about a running container
- Type
object
.status.steps[].terminated
- Description
- Details about a terminated container
- Type
object- Required
exitCode
.status.steps[].waiting
- Description
- Details about a waiting container
- Type
object
.status.taskSpec
- Description
- TaskSpec contains the Spec from the dereferenced Task definition used to instantiate this TaskRun.
- Type
object
.status.taskSpec.params
- Description
- Params is a list of input parameters required to run the task. Params must be supplied as inputs in TaskRuns unless they declare a default value.
- Type
array
.status.taskSpec.params[]
- Description
- ParamSpec defines arbitrary parameters needed beyond typed inputs (such as resources). Parameter values are provided by users as inputs on a TaskRun or PipelineRun.
- Type
object- Required
name
.status.taskSpec.params[].enum
- Description
- Enum declares a set of allowed param input values for tasks/pipelines that can be validated. If Enum is not set, no input validation is performed for the param.
- Type
array
.status.taskSpec.params[].enum[]
- Type
string
.status.taskSpec.params[].properties
- Description
- Properties is the JSON Schema properties to support key-value pairs parameter.
- Type
object
.status.taskSpec.results
- Description
- Results are values that this Task can output
- Type
array
.status.taskSpec.results[]
- Description
- TaskResult used to describe the results of a task
- Type
object- Required
name
.status.taskSpec.results[].properties
- Description
- Properties is the JSON Schema properties to support key-value pairs results.
- Type
object
.status.taskSpec.sidecars
- Description
- Sidecars are run alongside the Task's step containers. They begin before the steps start and end after the steps complete.
- Type
array
.status.taskSpec.sidecars[]
- Description
- Sidecar has nearly the same data structure as Step but does not have the ability to timeout.
- Type
object- Required
name
.status.taskSpec.sidecars[].args
- Description
- Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the Sidecar's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- Type
array
.status.taskSpec.sidecars[].args[]
- Type
string
.status.taskSpec.sidecars[].command
- Description
- Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the Sidecar's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- Type
array
.status.taskSpec.sidecars[].command[]
- Type
string
.status.taskSpec.sidecars[].computeResources
- Description
- ComputeResources required by this Sidecar. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.status.taskSpec.sidecars[].computeResources.claims
- Description
- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
- Type
array
.status.taskSpec.sidecars[].computeResources.claims[]
- Description
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- Type
object- Required
name
.status.taskSpec.sidecars[].computeResources.limits
- Description
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.status.taskSpec.sidecars[].computeResources.requests
- Description
- Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.status.taskSpec.sidecars[].env
- Description
- List of environment variables to set in the Sidecar. Cannot be updated.
- Type
array
.status.taskSpec.sidecars[].env[]
- Description
- EnvVar represents an environment variable present in a Container.
- Type
object- Required
name
.status.taskSpec.sidecars[].env[].valueFrom
- Description
- Source for the environment variable's value. Cannot be used if value is not empty.
- Type
object
.status.taskSpec.sidecars[].env[].valueFrom.configMapKeyRef
- Description
- Selects a key of a ConfigMap.
- Type
object- Required
key
.status.taskSpec.sidecars[].env[].valueFrom.fieldRef
- Description
- Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
- Type
object- Required
fieldPath
.status.taskSpec.sidecars[].env[].valueFrom.resourceFieldRef
- Description
- Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
- Type
object- Required
resource
.status.taskSpec.sidecars[].env[].valueFrom.secretKeyRef
- Description
- Selects a key of a secret in the pod's namespace
- Type
object- Required
key
.status.taskSpec.sidecars[].envFrom
- Description
- List of sources to populate environment variables in the Sidecar. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.
- Type
array
.status.taskSpec.sidecars[].envFrom[]
- Description
- EnvFromSource represents the source of a set of ConfigMaps
- Type
object
.status.taskSpec.sidecars[].envFrom[].configMapRef
- Description
- The ConfigMap to select from
- Type
object
.status.taskSpec.sidecars[].envFrom[].secretRef
- Description
- The Secret to select from
- Type
object
.status.taskSpec.sidecars[].lifecycle
- Description
- Actions that the management system should take in response to Sidecar lifecycle events. Cannot be updated.
- Type
object
.status.taskSpec.sidecars[].lifecycle.postStart
- Description
- PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- Type
object
.status.taskSpec.sidecars[].lifecycle.postStart.exec
- Description
- Exec specifies a command to execute in the container.
- Type
object
.status.taskSpec.sidecars[].lifecycle.postStart.exec.command
- Description
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- Type
array
.status.taskSpec.sidecars[].lifecycle.postStart.exec.command[]
- Type
string
.status.taskSpec.sidecars[].lifecycle.postStart.httpGet
- Description
- HTTPGet specifies an HTTP GET request to perform.
- Type
object- Required
port
.status.taskSpec.sidecars[].lifecycle.postStart.httpGet.httpHeaders
- Description
- Custom headers to set in the request. HTTP allows repeated headers.
- Type
array
.status.taskSpec.sidecars[].lifecycle.postStart.httpGet.httpHeaders[]
- Description
- HTTPHeader describes a custom header to be used in HTTP probes
- Type
object- Required
namevalue
.status.taskSpec.sidecars[].lifecycle.postStart.sleep
- Description
- Sleep represents a duration that the container should sleep.
- Type
object- Required
seconds
.status.taskSpec.sidecars[].lifecycle.postStart.tcpSocket
- Description
- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.
- Type
object- Required
port
.status.taskSpec.sidecars[].lifecycle.preStop
- Description
- PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- Type
object
.status.taskSpec.sidecars[].lifecycle.preStop.exec
- Description
- Exec specifies a command to execute in the container.
- Type
object
.status.taskSpec.sidecars[].lifecycle.preStop.exec.command
- Description
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- Type
array
.status.taskSpec.sidecars[].lifecycle.preStop.exec.command[]
- Type
string
.status.taskSpec.sidecars[].lifecycle.preStop.httpGet
- Description
- HTTPGet specifies an HTTP GET request to perform.
- Type
object- Required
port
.status.taskSpec.sidecars[].lifecycle.preStop.httpGet.httpHeaders
- Description
- Custom headers to set in the request. HTTP allows repeated headers.
- Type
array
.status.taskSpec.sidecars[].lifecycle.preStop.httpGet.httpHeaders[]
- Description
- HTTPHeader describes a custom header to be used in HTTP probes
- Type
object- Required
namevalue
.status.taskSpec.sidecars[].lifecycle.preStop.sleep
- Description
- Sleep represents a duration that the container should sleep.
- Type
object- Required
seconds
.status.taskSpec.sidecars[].lifecycle.preStop.tcpSocket
- Description
- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.
- Type
object- Required
port
.status.taskSpec.sidecars[].livenessProbe
- Description
- Periodic probe of Sidecar liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- Type
object
.status.taskSpec.sidecars[].livenessProbe.exec
- Description
- Exec specifies a command to execute in the container.
- Type
object
.status.taskSpec.sidecars[].livenessProbe.exec.command
- Description
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- Type
array
.status.taskSpec.sidecars[].livenessProbe.exec.command[]
- Type
string
.status.taskSpec.sidecars[].livenessProbe.grpc
- Description
- GRPC specifies a GRPC HealthCheckRequest.
- Type
object- Required
port
.status.taskSpec.sidecars[].livenessProbe.httpGet
- Description
- HTTPGet specifies an HTTP GET request to perform.
- Type
object- Required
port
.status.taskSpec.sidecars[].livenessProbe.httpGet.httpHeaders
- Description
- Custom headers to set in the request. HTTP allows repeated headers.
- Type
array
.status.taskSpec.sidecars[].livenessProbe.httpGet.httpHeaders[]
- Description
- HTTPHeader describes a custom header to be used in HTTP probes
- Type
object- Required
namevalue
.status.taskSpec.sidecars[].livenessProbe.tcpSocket
- Description
- TCPSocket specifies a connection to a TCP port.
- Type
object- Required
port
.status.taskSpec.sidecars[].ports
- Description
- List of ports to expose from the Sidecar. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated.
- Type
array
.status.taskSpec.sidecars[].ports[]
- Description
- ContainerPort represents a network port in a single container.
- Type
object- Required
containerPort
.status.taskSpec.sidecars[].readinessProbe
- Description
- Periodic probe of Sidecar service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- Type
object
.status.taskSpec.sidecars[].readinessProbe.exec
- Description
- Exec specifies a command to execute in the container.
- Type
object
.status.taskSpec.sidecars[].readinessProbe.exec.command
- Description
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- Type
array
.status.taskSpec.sidecars[].readinessProbe.exec.command[]
- Type
string
.status.taskSpec.sidecars[].readinessProbe.grpc
- Description
- GRPC specifies a GRPC HealthCheckRequest.
- Type
object- Required
port
.status.taskSpec.sidecars[].readinessProbe.httpGet
- Description
- HTTPGet specifies an HTTP GET request to perform.
- Type
object- Required
port
.status.taskSpec.sidecars[].readinessProbe.httpGet.httpHeaders
- Description
- Custom headers to set in the request. HTTP allows repeated headers.
- Type
array
.status.taskSpec.sidecars[].readinessProbe.httpGet.httpHeaders[]
- Description
- HTTPHeader describes a custom header to be used in HTTP probes
- Type
object- Required
namevalue
.status.taskSpec.sidecars[].readinessProbe.tcpSocket
- Description
- TCPSocket specifies a connection to a TCP port.
- Type
object- Required
port
.status.taskSpec.sidecars[].securityContext
- Description
- SecurityContext defines the security options the Sidecar should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
- Type
object
.status.taskSpec.sidecars[].securityContext.appArmorProfile
- Description
- appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows.
- Type
object- Required
type
.status.taskSpec.sidecars[].securityContext.capabilities
- Description
- The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows.
- Type
object
.status.taskSpec.sidecars[].securityContext.capabilities.add
- Description
- Added capabilities
- Type
array
.status.taskSpec.sidecars[].securityContext.capabilities.add[]
- Description
- Capability represent POSIX capabilities type
- Type
string
.status.taskSpec.sidecars[].securityContext.capabilities.drop
- Description
- Removed capabilities
- Type
array
.status.taskSpec.sidecars[].securityContext.capabilities.drop[]
- Description
- Capability represent POSIX capabilities type
- Type
string
.status.taskSpec.sidecars[].securityContext.seLinuxOptions
- Description
- The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.
- Type
object
.status.taskSpec.sidecars[].securityContext.seccompProfile
- Description
- The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows.
- Type
object- Required
type
.status.taskSpec.sidecars[].securityContext.windowsOptions
- Description
- The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.
- Type
object
.status.taskSpec.sidecars[].startupProbe
- Description
- StartupProbe indicates that the Pod the Sidecar is running in has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- Type
object
.status.taskSpec.sidecars[].startupProbe.exec
- Description
- Exec specifies a command to execute in the container.
- Type
object
.status.taskSpec.sidecars[].startupProbe.exec.command
- Description
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- Type
array
.status.taskSpec.sidecars[].startupProbe.exec.command[]
- Type
string
.status.taskSpec.sidecars[].startupProbe.grpc
- Description
- GRPC specifies a GRPC HealthCheckRequest.
- Type
object- Required
port
.status.taskSpec.sidecars[].startupProbe.httpGet
- Description
- HTTPGet specifies an HTTP GET request to perform.
- Type
object- Required
port
.status.taskSpec.sidecars[].startupProbe.httpGet.httpHeaders
- Description
- Custom headers to set in the request. HTTP allows repeated headers.
- Type
array
.status.taskSpec.sidecars[].startupProbe.httpGet.httpHeaders[]
- Description
- HTTPHeader describes a custom header to be used in HTTP probes
- Type
object- Required
namevalue
.status.taskSpec.sidecars[].startupProbe.tcpSocket
- Description
- TCPSocket specifies a connection to a TCP port.
- Type
object- Required
port
.status.taskSpec.sidecars[].volumeDevices
- Description
- volumeDevices is the list of block devices to be used by the Sidecar.
- Type
array
.status.taskSpec.sidecars[].volumeDevices[]
- Description
- volumeDevice describes a mapping of a raw block device within a container.
- Type
object- Required
devicePathname
.status.taskSpec.sidecars[].volumeMounts
- Description
- Volumes to mount into the Sidecar's filesystem. Cannot be updated.
- Type
array
.status.taskSpec.sidecars[].volumeMounts[]
- Description
- VolumeMount describes a mounting of a Volume within a container.
- Type
object- Required
mountPathname
.status.taskSpec.sidecars[].workspaces
- Description
- This is an alpha field. You must set the "enable-api-fields" feature flag to "alpha" for this field to be supported. Workspaces is a list of workspaces from the Task that this Sidecar wants exclusive access to. Adding a workspace to this list means that any other Step or Sidecar that does not also request this Workspace will not have access to it.
- Type
array
.status.taskSpec.sidecars[].workspaces[]
- Description
- WorkspaceUsage is used by a Step or Sidecar to declare that it wants isolated access to a Workspace defined in a Task.
- Type
object- Required
mountPathname
.status.taskSpec.stepTemplate
- Description
- StepTemplate can be used as the basis for all step containers within the Task, so that the steps inherit settings on the base container.
- Type
object
.status.taskSpec.stepTemplate.args
- Description
- Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the Step's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- Type
array
.status.taskSpec.stepTemplate.args[]
- Type
string
.status.taskSpec.stepTemplate.command
- Description
- Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the Step's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- Type
array
.status.taskSpec.stepTemplate.command[]
- Type
string
.status.taskSpec.stepTemplate.computeResources
- Description
- ComputeResources required by this Step. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.status.taskSpec.stepTemplate.computeResources.claims
- Description
- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
- Type
array
.status.taskSpec.stepTemplate.computeResources.claims[]
- Description
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- Type
object- Required
name
.status.taskSpec.stepTemplate.computeResources.limits
- Description
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.status.taskSpec.stepTemplate.computeResources.requests
- Description
- Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.status.taskSpec.stepTemplate.env
- Description
- List of environment variables to set in the Step. Cannot be updated.
- Type
array
.status.taskSpec.stepTemplate.env[]
- Description
- EnvVar represents an environment variable present in a Container.
- Type
object- Required
name
.status.taskSpec.stepTemplate.env[].valueFrom
- Description
- Source for the environment variable's value. Cannot be used if value is not empty.
- Type
object
.status.taskSpec.stepTemplate.env[].valueFrom.configMapKeyRef
- Description
- Selects a key of a ConfigMap.
- Type
object- Required
key
.status.taskSpec.stepTemplate.env[].valueFrom.fieldRef
- Description
- Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
- Type
object- Required
fieldPath
.status.taskSpec.stepTemplate.env[].valueFrom.resourceFieldRef
- Description
- Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
- Type
object- Required
resource
.status.taskSpec.stepTemplate.env[].valueFrom.secretKeyRef
- Description
- Selects a key of a secret in the pod's namespace
- Type
object- Required
key
.status.taskSpec.stepTemplate.envFrom
- Description
- List of sources to populate environment variables in the Step. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the Step is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.
- Type
array
.status.taskSpec.stepTemplate.envFrom[]
- Description
- EnvFromSource represents the source of a set of ConfigMaps
- Type
object
.status.taskSpec.stepTemplate.envFrom[].configMapRef
- Description
- The ConfigMap to select from
- Type
object
.status.taskSpec.stepTemplate.envFrom[].secretRef
- Description
- The Secret to select from
- Type
object
.status.taskSpec.stepTemplate.securityContext
- Description
- SecurityContext defines the security options the Step should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
- Type
object
.status.taskSpec.stepTemplate.securityContext.appArmorProfile
- Description
- appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows.
- Type
object- Required
type
.status.taskSpec.stepTemplate.securityContext.capabilities
- Description
- The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows.
- Type
object
.status.taskSpec.stepTemplate.securityContext.capabilities.add
- Description
- Added capabilities
- Type
array
.status.taskSpec.stepTemplate.securityContext.capabilities.add[]
- Description
- Capability represent POSIX capabilities type
- Type
string
.status.taskSpec.stepTemplate.securityContext.capabilities.drop
- Description
- Removed capabilities
- Type
array
.status.taskSpec.stepTemplate.securityContext.capabilities.drop[]
- Description
- Capability represent POSIX capabilities type
- Type
string
.status.taskSpec.stepTemplate.securityContext.seLinuxOptions
- Description
- The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.
- Type
object
.status.taskSpec.stepTemplate.securityContext.seccompProfile
- Description
- The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows.
- Type
object- Required
type
.status.taskSpec.stepTemplate.securityContext.windowsOptions
- Description
- The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.
- Type
object
.status.taskSpec.stepTemplate.volumeDevices
- Description
- volumeDevices is the list of block devices to be used by the Step.
- Type
array
.status.taskSpec.stepTemplate.volumeDevices[]
- Description
- volumeDevice describes a mapping of a raw block device within a container.
- Type
object- Required
devicePathname
.status.taskSpec.stepTemplate.volumeMounts
- Description
- Volumes to mount into the Step's filesystem. Cannot be updated.
- Type
array
.status.taskSpec.stepTemplate.volumeMounts[]
- Description
- VolumeMount describes a mounting of a Volume within a container.
- Type
object- Required
mountPathname
.status.taskSpec.steps
- Description
- Steps are the steps of the build; each step is run sequentially with the source mounted into /workspace.
- Type
array
.status.taskSpec.steps[]
- Description
- Step runs a subcomponent of a Task
- Type
object- Required
name
.status.taskSpec.steps[].args
- Description
- Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- Type
array
.status.taskSpec.steps[].args[]
- Type
string
.status.taskSpec.steps[].command
- Description
- Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- Type
array
.status.taskSpec.steps[].command[]
- Type
string
.status.taskSpec.steps[].computeResources
- Description
- ComputeResources required by this Step. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.status.taskSpec.steps[].computeResources.claims
- Description
- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
- Type
array
.status.taskSpec.steps[].computeResources.claims[]
- Description
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- Type
object- Required
name
.status.taskSpec.steps[].computeResources.limits
- Description
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.status.taskSpec.steps[].computeResources.requests
- Description
- Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Type
object
.status.taskSpec.steps[].env
- Description
- List of environment variables to set in the Step. Cannot be updated.
- Type
array
.status.taskSpec.steps[].env[]
- Description
- EnvVar represents an environment variable present in a Container.
- Type
object- Required
name
.status.taskSpec.steps[].env[].valueFrom
- Description
- Source for the environment variable's value. Cannot be used if value is not empty.
- Type
object
.status.taskSpec.steps[].env[].valueFrom.configMapKeyRef
- Description
- Selects a key of a ConfigMap.
- Type
object- Required
key
.status.taskSpec.steps[].env[].valueFrom.fieldRef
- Description
- Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
- Type
object- Required
fieldPath
.status.taskSpec.steps[].env[].valueFrom.resourceFieldRef
- Description
- Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
- Type
object- Required
resource
.status.taskSpec.steps[].env[].valueFrom.secretKeyRef
- Description
- Selects a key of a secret in the pod's namespace
- Type
object- Required
key
.status.taskSpec.steps[].envFrom
- Description
- List of sources to populate environment variables in the Step. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the Step is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.
- Type
array
.status.taskSpec.steps[].envFrom[]
- Description
- EnvFromSource represents the source of a set of ConfigMaps
- Type
object
.status.taskSpec.steps[].envFrom[].configMapRef
- Description
- The ConfigMap to select from
- Type
object
.status.taskSpec.steps[].envFrom[].secretRef
- Description
- The Secret to select from
- Type
object
.status.taskSpec.steps[].params
- Description
- Params declares parameters passed to this step action.
- Type
array
.status.taskSpec.steps[].params[]
- Description
- Param declares an ParamValues to use for the parameter called name.
- Type
object- Required
namevalue
.status.taskSpec.steps[].ref
- Description
- Contains the reference to an existing StepAction.
- Type
object
.status.taskSpec.steps[].ref.params
- Description
- Params contains the parameters used to identify the referenced Tekton resource. Example entries might include "repo" or "path" but the set of params ultimately depends on the chosen resolver.
- Type
array
.status.taskSpec.steps[].ref.params[]
- Description
- Param declares an ParamValues to use for the parameter called name.
- Type
object- Required
namevalue
.status.taskSpec.steps[].results
- Description
- Results declares StepResults produced by the Step. It can be used in an inlined Step when used to store Results to $(step.results.resultName.path). It cannot be used when referencing StepActions using [v1.Step.Ref]. The Results declared by the StepActions will be stored here instead.
- Type
array
.status.taskSpec.steps[].results[]
- Description
- StepResult used to describe the Results of a Step.
- Type
object- Required
name
.status.taskSpec.steps[].results[].properties
- Description
- Properties is the JSON Schema properties to support key-value pairs results.
- Type
object
.status.taskSpec.steps[].securityContext
- Description
- SecurityContext defines the security options the Step should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
- Type
object
.status.taskSpec.steps[].securityContext.appArmorProfile
- Description
- appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows.
- Type
object- Required
type
.status.taskSpec.steps[].securityContext.capabilities
- Description
- The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows.
- Type
object
.status.taskSpec.steps[].securityContext.capabilities.add
- Description
- Added capabilities
- Type
array
.status.taskSpec.steps[].securityContext.capabilities.add[]
- Description
- Capability represent POSIX capabilities type
- Type
string
.status.taskSpec.steps[].securityContext.capabilities.drop
- Description
- Removed capabilities
- Type
array
.status.taskSpec.steps[].securityContext.capabilities.drop[]
- Description
- Capability represent POSIX capabilities type
- Type
string
.status.taskSpec.steps[].securityContext.seLinuxOptions
- Description
- The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.
- Type
object
.status.taskSpec.steps[].securityContext.seccompProfile
- Description
- The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows.
- Type
object- Required
type
.status.taskSpec.steps[].securityContext.windowsOptions
- Description
- The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.
- Type
object
.status.taskSpec.steps[].stderrConfig
- Description
- Stores configuration for the stderr stream of the step.
- Type
object
.status.taskSpec.steps[].stdoutConfig
- Description
- Stores configuration for the stdout stream of the step.
- Type
object
.status.taskSpec.steps[].volumeDevices
- Description
- volumeDevices is the list of block devices to be used by the Step.
- Type
array
.status.taskSpec.steps[].volumeDevices[]
- Description
- volumeDevice describes a mapping of a raw block device within a container.
- Type
object- Required
devicePathname
.status.taskSpec.steps[].volumeMounts
- Description
- Volumes to mount into the Step's filesystem. Cannot be updated.
- Type
array
.status.taskSpec.steps[].volumeMounts[]
- Description
- VolumeMount describes a mounting of a Volume within a container.
- Type
object- Required
mountPathname
.status.taskSpec.steps[].when
- Description
- When is a list of when expressions that need to be true for the task to run
- Type
array
.status.taskSpec.steps[].when[]
- Description
- WhenExpression allows a PipelineTask to declare expressions to be evaluated before the Task is run to determine whether the Task should be executed or skipped
- Type
object
.status.taskSpec.steps[].when[].values
- Description
- Values is an array of strings, which is compared against the input, for guard checking It must be non-empty
- Type
array
.status.taskSpec.steps[].when[].values[]
- Type
string
.status.taskSpec.steps[].workspaces
- Description
- This is an alpha field. You must set the "enable-api-fields" feature flag to "alpha" for this field to be supported. Workspaces is a list of workspaces from the Task that this Step wants exclusive access to. Adding a workspace to this list means that any other Step or Sidecar that does not also request this Workspace will not have access to it.
- Type
array
.status.taskSpec.steps[].workspaces[]
- Description
- WorkspaceUsage is used by a Step or Sidecar to declare that it wants isolated access to a Workspace defined in a Task.
- Type
object- Required
mountPathname
.status.taskSpec.workspaces
- Description
- Workspaces are the volumes that this Task requires.
- Type
array
.status.taskSpec.workspaces[]
- Description
- WorkspaceDeclaration is a declaration of a volume that a Task requires.
- Type
object- Required
name
API Endpoints
The following API endpoints are available:
/apis/tekton.dev/v1/namespaces/{namespace}/taskrunsDELETE: delete collection of TaskRunGET: list objects of kind TaskRunPOST: create a new TaskRun
/apis/tekton.dev/v1/namespaces/{namespace}/taskruns/{name}DELETE: delete the specified TaskRunGET: read the specified TaskRunPATCH: partially update the specified TaskRunPUT: replace the specified TaskRun
/apis/tekton.dev/v1/namespaces/{namespace}/taskruns/{name}/statusGET: read status of the specified TaskRunPATCH: partially update status of the specified TaskRunPUT: replace status of the specified TaskRun
/apis/tekton.dev/v1/namespaces/{namespace}/taskruns
- HTTP method
DELETE- Description
- delete collection of TaskRun
- HTTP responses
- HTTP method
GET- Description
- list objects of kind TaskRun
- HTTP responses
- HTTP method
POST- Description
- create a new TaskRun
- Query parameters
- Body parameters
- HTTP responses
/apis/tekton.dev/v1/namespaces/{namespace}/taskruns/{name}
- HTTP method
DELETE- Description
- delete the specified TaskRun
- Query parameters
- HTTP responses
- HTTP method
GET- Description
- read the specified TaskRun
- HTTP responses
- HTTP method
PATCH- Description
- partially update the specified TaskRun
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace the specified TaskRun
- Query parameters
- Body parameters
- HTTP responses
/apis/tekton.dev/v1/namespaces/{namespace}/taskruns/{name}/status
- HTTP method
GET- Description
- read status of the specified TaskRun
- HTTP responses
- HTTP method
PATCH- Description
- partially update status of the specified TaskRun
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace status of the specified TaskRun
- Query parameters
- Body parameters
- HTTP responses