TaskRun [tekton.dev/v1]
- 描述
- 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.
- 类型
object
规格
.spec
- 描述
- TaskRunSpec defines the desired state of TaskRun
- 类型
object
.spec.computeResources
- 描述
- Compute resources to use for this TaskRun
- 类型
object
.spec.computeResources.claims
- 描述
- 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.
- 类型
array
.spec.computeResources.claims[]
- 描述
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- 类型
object- 必填
name
.spec.computeResources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.computeResources.requests
- 描述
- 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/
- 类型
object
.spec.debug
- 描述
- TaskRunDebug defines the breakpoint config for a particular TaskRun
- 类型
object
.spec.debug.breakpoints
- 描述
- TaskBreakpoints defines the breakpoint config for a particular Task
- 类型
object
.spec.debug.breakpoints.beforeSteps
- 类型
array
.spec.debug.breakpoints.beforeSteps[]
- 类型
string
.spec.params
- 描述
- Params is a list of Param
- 类型
array
.spec.params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.spec.podTemplate
- 描述
- PodTemplate holds pod specific configuration
- 类型
object
.spec.podTemplate.dnsConfig
- 描述
- Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.
- 类型
object
.spec.podTemplate.dnsConfig.nameservers
- 描述
- A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.
- 类型
array
.spec.podTemplate.dnsConfig.nameservers[]
- 类型
string
.spec.podTemplate.dnsConfig.options
- 描述
- 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.
- 类型
array
.spec.podTemplate.dnsConfig.options[]
- 描述
- PodDNSConfigOption defines DNS resolver options of a pod.
- 类型
object
.spec.podTemplate.dnsConfig.searches
- 描述
- 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.
- 类型
array
.spec.podTemplate.dnsConfig.searches[]
- 类型
string
.spec.podTemplate.env
- 描述
- List of environment variables that can be provided to the containers belonging to the pod.
- 类型
array
.spec.podTemplate.env[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.spec.podTemplate.env[].valueFrom
- 描述
- Source for the environment variable's value. Cannot be used if value is not empty.
- 类型
object
.spec.podTemplate.env[].valueFrom.configMapKeyRef
- 描述
- Selects a key of a ConfigMap.
- 类型
object- 必填
key
.spec.podTemplate.env[].valueFrom.fieldRef
- 描述
- 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.
- 类型
object- 必填
fieldPath
.spec.podTemplate.env[].valueFrom.resourceFieldRef
- 描述
- 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.
- 类型
object- 必填
resource
.spec.podTemplate.env[].valueFrom.secretKeyRef
- 描述
- Selects a key of a secret in the pod's namespace
- 类型
object- 必填
key
.spec.podTemplate.hostAliases
- 描述
- 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.
- 类型
array
.spec.podTemplate.hostAliases[]
- 描述
- HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.
- 类型
object- 必填
ip
.spec.podTemplate.hostAliases[].hostnames
- 描述
- Hostnames for the above IP address.
- 类型
array
.spec.podTemplate.hostAliases[].hostnames[]
- 类型
string
.spec.podTemplate.imagePullSecrets
- 描述
- ImagePullSecrets gives the name of the secret used by the pod to pull the image if specified
- 类型
array
.spec.podTemplate.imagePullSecrets[]
- 描述
- LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
- 类型
object
.spec.podTemplate.nodeSelector
- 描述
- 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/
- 类型
object
.spec.podTemplate.tolerations
- 描述
- If specified, the pod's tolerations.
- 类型
array
.spec.podTemplate.tolerations[]
- 描述
- The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
- 类型
object
.spec.podTemplate.topologySpreadConstraints
- 描述
- TopologySpreadConstraints controls how Pods are spread across your cluster among failure-domains such as regions, zones, nodes, and other user-defined topology domains.
- 类型
array
.spec.podTemplate.topologySpreadConstraints[]
- 描述
- TopologySpreadConstraint specifies how to spread matching pods among the given topology.
- 类型
object- 必填
maxSkewtopologyKeywhenUnsatisfiable
.spec.podTemplate.topologySpreadConstraints[].labelSelector
- 描述
- 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.
- 类型
object
.spec.podTemplate.topologySpreadConstraints[].labelSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.podTemplate.topologySpreadConstraints[].labelSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.podTemplate.topologySpreadConstraints[].labelSelector.matchExpressions[].values
- 描述
- 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.
- 类型
array
.spec.podTemplate.topologySpreadConstraints[].labelSelector.matchExpressions[].values[]
- 类型
string
.spec.podTemplate.topologySpreadConstraints[].labelSelector.matchLabels
- 描述
- 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.
- 类型
object
.spec.podTemplate.topologySpreadConstraints[].matchLabelKeys
- 描述
- 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).
- 类型
array
.spec.podTemplate.topologySpreadConstraints[].matchLabelKeys[]
- 类型
string
.spec.sidecarSpecs
- 描述
- 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.
- 类型
array
.spec.sidecarSpecs[]
- 描述
- TaskRunSidecarSpec is used to override the values of a Sidecar in the corresponding Task.
- 类型
object- 必填
computeResourcesname
.spec.sidecarSpecs[].computeResources
- 描述
- The resource requirements to apply to the Sidecar.
- 类型
object
.spec.sidecarSpecs[].computeResources.claims
- 描述
- 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.
- 类型
array
.spec.sidecarSpecs[].computeResources.claims[]
- 描述
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- 类型
object- 必填
name
.spec.sidecarSpecs[].computeResources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.sidecarSpecs[].computeResources.requests
- 描述
- 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/
- 类型
object
.spec.stepSpecs
- 描述
- 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.
- 类型
array
.spec.stepSpecs[]
- 描述
- TaskRunStepSpec is used to override the values of a Step in the corresponding Task.
- 类型
object- 必填
computeResourcesname
.spec.stepSpecs[].computeResources
- 描述
- The resource requirements to apply to the Step.
- 类型
object
.spec.stepSpecs[].computeResources.claims
- 描述
- 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.
- 类型
array
.spec.stepSpecs[].computeResources.claims[]
- 描述
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- 类型
object- 必填
name
.spec.stepSpecs[].computeResources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.stepSpecs[].computeResources.requests
- 描述
- 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/
- 类型
object
.spec.taskRef
- 描述
- no more than one of the TaskRef and TaskSpec may be specified.
- 类型
object
.spec.taskRef.params
- 描述
- 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.
- 类型
array
.spec.taskRef.params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.spec.workspaces
- 描述
- Workspaces is a list of WorkspaceBindings from volumes to workspaces.
- 类型
array
.spec.workspaces[]
- 描述
- WorkspaceBinding maps a Task's declared workspace to a Volume.
- 类型
object- 必填
name
.spec.workspaces[].configMap
- 描述
- ConfigMap represents a configMap that should populate this workspace.
- 类型
object
.spec.workspaces[].configMap.items
- 描述
- 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 '..'.
- 类型
array
.spec.workspaces[].configMap.items[]
- 描述
- Maps a string key to a path within a volume.
- 类型
object- 必填
keypath
.spec.workspaces[].csi
- 描述
- CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.
- 类型
object- 必填
driver
.spec.workspaces[].csi.nodePublishSecretRef
- 描述
- 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.
- 类型
object
.spec.workspaces[].csi.volumeAttributes
- 描述
- volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.
- 类型
object
.spec.workspaces[].emptyDir
- 描述
- 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.
- 类型
object
.spec.workspaces[].persistentVolumeClaim
- 描述
- PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Either this OR EmptyDir can be used.
- 类型
object- 必填
claimName
.spec.workspaces[].projected
- 描述
- Projected represents a projected volume that should populate this workspace.
- 类型
object
.spec.workspaces[].projected.sources
- 描述
- sources is the list of volume projections. Each entry in this list handles one source.
- 类型
array
.spec.workspaces[].projected.sources[]
- 描述
- Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.
- 类型
object
.spec.workspaces[].projected.sources[].clusterTrustBundle
- 描述
- 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.
- 类型
object- 必填
path
.spec.workspaces[].projected.sources[].clusterTrustBundle.labelSelector
- 描述
- 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".
- 类型
object
.spec.workspaces[].projected.sources[].clusterTrustBundle.labelSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.workspaces[].projected.sources[].clusterTrustBundle.labelSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.workspaces[].projected.sources[].clusterTrustBundle.labelSelector.matchExpressions[].values
- 描述
- 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.
- 类型
array
.spec.workspaces[].projected.sources[].clusterTrustBundle.labelSelector.matchExpressions[].values[]
- 类型
string
.spec.workspaces[].projected.sources[].clusterTrustBundle.labelSelector.matchLabels
- 描述
- 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.
- 类型
object
.spec.workspaces[].projected.sources[].configMap
- 描述
- configMap information about the configMap data to project
- 类型
object
.spec.workspaces[].projected.sources[].configMap.items
- 描述
- 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 '..'.
- 类型
array
.spec.workspaces[].projected.sources[].configMap.items[]
- 描述
- Maps a string key to a path within a volume.
- 类型
object- 必填
keypath
.spec.workspaces[].projected.sources[].downwardAPI
- 描述
- downwardAPI information about the downwardAPI data to project
- 类型
object
.spec.workspaces[].projected.sources[].downwardAPI.items
- 描述
- Items is a list of DownwardAPIVolume file
- 类型
array
.spec.workspaces[].projected.sources[].downwardAPI.items[]
- 描述
- DownwardAPIVolumeFile represents information to create the file containing the pod field
- 类型
object- 必填
path
.spec.workspaces[].projected.sources[].downwardAPI.items[].fieldRef
- 描述
- Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.
- 类型
object- 必填
fieldPath
.spec.workspaces[].projected.sources[].downwardAPI.items[].resourceFieldRef
- 描述
- Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
- 类型
object- 必填
resource
.spec.workspaces[].projected.sources[].secret
- 描述
- secret information about the secret data to project
- 类型
object
.spec.workspaces[].projected.sources[].secret.items
- 描述
- 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 '..'.
- 类型
array
.spec.workspaces[].projected.sources[].secret.items[]
- 描述
- Maps a string key to a path within a volume.
- 类型
object- 必填
keypath
.spec.workspaces[].projected.sources[].serviceAccountToken
- 描述
- serviceAccountToken is information about the serviceAccountToken data to project
- 类型
object- 必填
path
.spec.workspaces[].secret
- 描述
- Secret represents a secret that should populate this workspace.
- 类型
object
.spec.workspaces[].secret.items
- 描述
- 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 '..'.
- 类型
array
.spec.workspaces[].secret.items[]
- 描述
- Maps a string key to a path within a volume.
- 类型
object- 必填
keypath
.status
- 描述
- TaskRunStatus defines the observed state of TaskRun
- 类型
object- 必填
podName
.status.annotations
- 描述
- 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.
- 类型
object
.status.artifacts
- 描述
- Artifacts are the list of artifacts written out by the task's containers
- 类型
object
.status.artifacts.inputs
- 类型
array
.status.artifacts.inputs[]
- 描述
- Artifact represents an artifact within a system, potentially containing multiple values associated with it.
- 类型
object
.status.artifacts.inputs[].values
- 描述
- A collection of values related to the artifact
- 类型
array
.status.artifacts.inputs[].values[]
- 描述
- ArtifactValue represents a specific value or data element within an Artifact.
- 类型
object
.status.artifacts.inputs[].values[].digest
- 类型
object
.status.artifacts.outputs
- 类型
array
.status.artifacts.outputs[]
- 描述
- Artifact represents an artifact within a system, potentially containing multiple values associated with it.
- 类型
object
.status.artifacts.outputs[].values
- 描述
- A collection of values related to the artifact
- 类型
array
.status.artifacts.outputs[].values[]
- 描述
- ArtifactValue represents a specific value or data element within an Artifact.
- 类型
object
.status.artifacts.outputs[].values[].digest
- 类型
object
.status.conditions
- 描述
- Conditions the latest available observations of a resource's current state.
- 类型
array
.status.conditions[]
- 描述
- 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
- 类型
object- 必填
statustype
.status.provenance
- 描述
- Provenance contains some key authenticated metadata about how a software artifact was built (what sources, what inputs/outputs, etc.).
- 类型
object
.status.provenance.featureFlags
- 描述
- FeatureFlags identifies the feature flags that were used during the task/pipeline run
- 类型
object
.status.provenance.refSource
- 描述
- RefSource identifies the source where a remote task/pipeline came from.
- 类型
object
.status.provenance.refSource.digest
- 描述
- Digest is a collection of cryptographic digests for the contents of the artifact specified by URI. Example: {"sha1": "f99d13e554ffcb696dee719fa85b695cb5b0f428"}
- 类型
object
.status.results
- 描述
- Results are the list of results written out by the task's containers
- 类型
array
.status.results[]
- 描述
- TaskRunResult used to describe the results of a task
- 类型
object- 必填
namevalue
.status.sidecars
- 描述
- The list has one entry per sidecar in the manifest. Each entry is represents the imageid of the corresponding sidecar.
- 类型
array
.status.sidecars[]
- 描述
- SidecarState reports the results of running a sidecar in a Task.
- 类型
object
.status.sidecars[].running
- 描述
- Details about a running container
- 类型
object
.status.sidecars[].terminated
- 描述
- Details about a terminated container
- 类型
object- 必填
exitCode
.status.sidecars[].waiting
- 描述
- Details about a waiting container
- 类型
object
.status.spanContext
- 描述
- SpanContext contains tracing span context fields
- 类型
object
.status.steps
- 描述
- Steps describes the state of each build step container.
- 类型
array
.status.steps[]
- 描述
- StepState reports the results of running a step in a Task.
- 类型
object
.status.steps[].inputs
- 类型
array
.status.steps[].inputs[]
- 描述
- Artifact represents an artifact within a system, potentially containing multiple values associated with it.
- 类型
object
.status.steps[].inputs[].values
- 描述
- A collection of values related to the artifact
- 类型
array
.status.steps[].inputs[].values[]
- 描述
- ArtifactValue represents a specific value or data element within an Artifact.
- 类型
object
.status.steps[].inputs[].values[].digest
- 类型
object
.status.steps[].outputs
- 类型
array
.status.steps[].outputs[]
- 描述
- Artifact represents an artifact within a system, potentially containing multiple values associated with it.
- 类型
object
.status.steps[].outputs[].values
- 描述
- A collection of values related to the artifact
- 类型
array
.status.steps[].outputs[].values[]
- 描述
- ArtifactValue represents a specific value or data element within an Artifact.
- 类型
object
.status.steps[].outputs[].values[].digest
- 类型
object
.status.steps[].provenance
- 描述
- 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.
- 类型
object
.status.steps[].provenance.featureFlags
- 描述
- FeatureFlags identifies the feature flags that were used during the task/pipeline run
- 类型
object
.status.steps[].provenance.refSource
- 描述
- RefSource identifies the source where a remote task/pipeline came from.
- 类型
object
.status.steps[].provenance.refSource.digest
- 描述
- Digest is a collection of cryptographic digests for the contents of the artifact specified by URI. Example: {"sha1": "f99d13e554ffcb696dee719fa85b695cb5b0f428"}
- 类型
object
.status.steps[].results
- 类型
array
.status.steps[].results[]
- 描述
- TaskRunResult used to describe the results of a task
- 类型
object- 必填
namevalue
.status.steps[].running
- 描述
- Details about a running container
- 类型
object
.status.steps[].terminated
- 描述
- Details about a terminated container
- 类型
object- 必填
exitCode
.status.steps[].waiting
- 描述
- Details about a waiting container
- 类型
object
.status.taskSpec
- 描述
- TaskSpec contains the Spec from the dereferenced Task definition used to instantiate this TaskRun.
- 类型
object
.status.taskSpec.params
- 描述
- 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.
- 类型
array
.status.taskSpec.params[]
- 描述
- ParamSpec defines arbitrary parameters needed beyond typed inputs (such as resources). Parameter values are provided by users as inputs on a TaskRun or PipelineRun.
- 类型
object- 必填
name
.status.taskSpec.params[].enum
- 描述
- 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.
- 类型
array
.status.taskSpec.params[].enum[]
- 类型
string
.status.taskSpec.params[].properties
- 描述
- Properties is the JSON Schema properties to support key-value pairs parameter.
- 类型
object
.status.taskSpec.results
- 描述
- Results are values that this Task can output
- 类型
array
.status.taskSpec.results[]
- 描述
- TaskResult used to describe the results of a task
- 类型
object- 必填
name
.status.taskSpec.results[].properties
- 描述
- Properties is the JSON Schema properties to support key-value pairs results.
- 类型
object
.status.taskSpec.sidecars
- 描述
- Sidecars are run alongside the Task's step containers. They begin before the steps start and end after the steps complete.
- 类型
array
.status.taskSpec.sidecars[]
- 描述
- Sidecar has nearly the same data structure as Step but does not have the ability to timeout.
- 类型
object- 必填
name
.status.taskSpec.sidecars[].args
- 描述
- 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
- 类型
array
.status.taskSpec.sidecars[].args[]
- 类型
string
.status.taskSpec.sidecars[].command
- 描述
- 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
- 类型
array
.status.taskSpec.sidecars[].command[]
- 类型
string
.status.taskSpec.sidecars[].computeResources
- 描述
- ComputeResources required by this Sidecar. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.status.taskSpec.sidecars[].computeResources.claims
- 描述
- 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.
- 类型
array
.status.taskSpec.sidecars[].computeResources.claims[]
- 描述
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- 类型
object- 必填
name
.status.taskSpec.sidecars[].computeResources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.status.taskSpec.sidecars[].computeResources.requests
- 描述
- 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/
- 类型
object
.status.taskSpec.sidecars[].env
- 描述
- List of environment variables to set in the Sidecar. Cannot be updated.
- 类型
array
.status.taskSpec.sidecars[].env[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.status.taskSpec.sidecars[].env[].valueFrom
- 描述
- Source for the environment variable's value. Cannot be used if value is not empty.
- 类型
object
.status.taskSpec.sidecars[].env[].valueFrom.configMapKeyRef
- 描述
- Selects a key of a ConfigMap.
- 类型
object- 必填
key
.status.taskSpec.sidecars[].env[].valueFrom.fieldRef
- 描述
- 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.
- 类型
object- 必填
fieldPath
.status.taskSpec.sidecars[].env[].valueFrom.resourceFieldRef
- 描述
- 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.
- 类型
object- 必填
resource
.status.taskSpec.sidecars[].env[].valueFrom.secretKeyRef
- 描述
- Selects a key of a secret in the pod's namespace
- 类型
object- 必填
key
.status.taskSpec.sidecars[].envFrom
- 描述
- 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.
- 类型
array
.status.taskSpec.sidecars[].envFrom[]
- 描述
- EnvFromSource represents the source of a set of ConfigMaps
- 类型
object
.status.taskSpec.sidecars[].envFrom[].configMapRef
- 描述
- The ConfigMap to select from
- 类型
object
.status.taskSpec.sidecars[].envFrom[].secretRef
- 描述
- The Secret to select from
- 类型
object
.status.taskSpec.sidecars[].lifecycle
- 描述
- Actions that the management system should take in response to Sidecar lifecycle events. Cannot be updated.
- 类型
object
.status.taskSpec.sidecars[].lifecycle.postStart
- 描述
- 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
- 类型
object
.status.taskSpec.sidecars[].lifecycle.postStart.exec
- 描述
- Exec specifies a command to execute in the container.
- 类型
object
.status.taskSpec.sidecars[].lifecycle.postStart.exec.command
- 描述
- 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.
- 类型
array
.status.taskSpec.sidecars[].lifecycle.postStart.exec.command[]
- 类型
string
.status.taskSpec.sidecars[].lifecycle.postStart.httpGet
- 描述
- HTTPGet specifies an HTTP GET request to perform.
- 类型
object- 必填
port
.status.taskSpec.sidecars[].lifecycle.postStart.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.status.taskSpec.sidecars[].lifecycle.postStart.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.status.taskSpec.sidecars[].lifecycle.postStart.sleep
- 描述
- Sleep represents a duration that the container should sleep.
- 类型
object- 必填
seconds
.status.taskSpec.sidecars[].lifecycle.postStart.tcpSocket
- 描述
- 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.
- 类型
object- 必填
port
.status.taskSpec.sidecars[].lifecycle.preStop
- 描述
- 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
- 类型
object
.status.taskSpec.sidecars[].lifecycle.preStop.exec
- 描述
- Exec specifies a command to execute in the container.
- 类型
object
.status.taskSpec.sidecars[].lifecycle.preStop.exec.command
- 描述
- 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.
- 类型
array
.status.taskSpec.sidecars[].lifecycle.preStop.exec.command[]
- 类型
string
.status.taskSpec.sidecars[].lifecycle.preStop.httpGet
- 描述
- HTTPGet specifies an HTTP GET request to perform.
- 类型
object- 必填
port
.status.taskSpec.sidecars[].lifecycle.preStop.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.status.taskSpec.sidecars[].lifecycle.preStop.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.status.taskSpec.sidecars[].lifecycle.preStop.sleep
- 描述
- Sleep represents a duration that the container should sleep.
- 类型
object- 必填
seconds
.status.taskSpec.sidecars[].lifecycle.preStop.tcpSocket
- 描述
- 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.
- 类型
object- 必填
port
.status.taskSpec.sidecars[].livenessProbe
- 描述
- 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
- 类型
object
.status.taskSpec.sidecars[].livenessProbe.exec
- 描述
- Exec specifies a command to execute in the container.
- 类型
object
.status.taskSpec.sidecars[].livenessProbe.exec.command
- 描述
- 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.
- 类型
array
.status.taskSpec.sidecars[].livenessProbe.exec.command[]
- 类型
string
.status.taskSpec.sidecars[].livenessProbe.grpc
- 描述
- GRPC specifies a GRPC HealthCheckRequest.
- 类型
object- 必填
port
.status.taskSpec.sidecars[].livenessProbe.httpGet
- 描述
- HTTPGet specifies an HTTP GET request to perform.
- 类型
object- 必填
port
.status.taskSpec.sidecars[].livenessProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.status.taskSpec.sidecars[].livenessProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.status.taskSpec.sidecars[].livenessProbe.tcpSocket
- 描述
- TCPSocket specifies a connection to a TCP port.
- 类型
object- 必填
port
.status.taskSpec.sidecars[].ports
- 描述
- 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.
- 类型
array
.status.taskSpec.sidecars[].ports[]
- 描述
- ContainerPort represents a network port in a single container.
- 类型
object- 必填
containerPort
.status.taskSpec.sidecars[].readinessProbe
- 描述
- 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
- 类型
object
.status.taskSpec.sidecars[].readinessProbe.exec
- 描述
- Exec specifies a command to execute in the container.
- 类型
object
.status.taskSpec.sidecars[].readinessProbe.exec.command
- 描述
- 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.
- 类型
array
.status.taskSpec.sidecars[].readinessProbe.exec.command[]
- 类型
string
.status.taskSpec.sidecars[].readinessProbe.grpc
- 描述
- GRPC specifies a GRPC HealthCheckRequest.
- 类型
object- 必填
port
.status.taskSpec.sidecars[].readinessProbe.httpGet
- 描述
- HTTPGet specifies an HTTP GET request to perform.
- 类型
object- 必填
port
.status.taskSpec.sidecars[].readinessProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.status.taskSpec.sidecars[].readinessProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.status.taskSpec.sidecars[].readinessProbe.tcpSocket
- 描述
- TCPSocket specifies a connection to a TCP port.
- 类型
object- 必填
port
.status.taskSpec.sidecars[].securityContext
- 描述
- 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/
- 类型
object
.status.taskSpec.sidecars[].securityContext.appArmorProfile
- 描述
- 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.
- 类型
object- 必填
type
.status.taskSpec.sidecars[].securityContext.capabilities
- 描述
- 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.
- 类型
object
.status.taskSpec.sidecars[].securityContext.capabilities.add
- 描述
- Added capabilities
- 类型
array
.status.taskSpec.sidecars[].securityContext.capabilities.add[]
- 描述
- Capability represent POSIX capabilities type
- 类型
string
.status.taskSpec.sidecars[].securityContext.capabilities.drop
- 描述
- Removed capabilities
- 类型
array
.status.taskSpec.sidecars[].securityContext.capabilities.drop[]
- 描述
- Capability represent POSIX capabilities type
- 类型
string
.status.taskSpec.sidecars[].securityContext.seLinuxOptions
- 描述
- 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.
- 类型
object
.status.taskSpec.sidecars[].securityContext.seccompProfile
- 描述
- 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.
- 类型
object- 必填
type
.status.taskSpec.sidecars[].securityContext.windowsOptions
- 描述
- 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.
- 类型
object
.status.taskSpec.sidecars[].startupProbe
- 描述
- 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
- 类型
object
.status.taskSpec.sidecars[].startupProbe.exec
- 描述
- Exec specifies a command to execute in the container.
- 类型
object
.status.taskSpec.sidecars[].startupProbe.exec.command
- 描述
- 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.
- 类型
array
.status.taskSpec.sidecars[].startupProbe.exec.command[]
- 类型
string
.status.taskSpec.sidecars[].startupProbe.grpc
- 描述
- GRPC specifies a GRPC HealthCheckRequest.
- 类型
object- 必填
port
.status.taskSpec.sidecars[].startupProbe.httpGet
- 描述
- HTTPGet specifies an HTTP GET request to perform.
- 类型
object- 必填
port
.status.taskSpec.sidecars[].startupProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.status.taskSpec.sidecars[].startupProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.status.taskSpec.sidecars[].startupProbe.tcpSocket
- 描述
- TCPSocket specifies a connection to a TCP port.
- 类型
object- 必填
port
.status.taskSpec.sidecars[].volumeDevices
- 描述
- volumeDevices is the list of block devices to be used by the Sidecar.
- 类型
array
.status.taskSpec.sidecars[].volumeDevices[]
- 描述
- volumeDevice describes a mapping of a raw block device within a container.
- 类型
object- 必填
devicePathname
.status.taskSpec.sidecars[].volumeMounts
- 描述
- Volumes to mount into the Sidecar's filesystem. Cannot be updated.
- 类型
array
.status.taskSpec.sidecars[].volumeMounts[]
- 描述
- VolumeMount describes a mounting of a Volume within a container.
- 类型
object- 必填
mountPathname
.status.taskSpec.sidecars[].workspaces
- 描述
- 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.
- 类型
array
.status.taskSpec.sidecars[].workspaces[]
- 描述
- WorkspaceUsage is used by a Step or Sidecar to declare that it wants isolated access to a Workspace defined in a Task.
- 类型
object- 必填
mountPathname
.status.taskSpec.stepTemplate
- 描述
- StepTemplate can be used as the basis for all step containers within the Task, so that the steps inherit settings on the base container.
- 类型
object
.status.taskSpec.stepTemplate.args
- 描述
- 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
- 类型
array
.status.taskSpec.stepTemplate.args[]
- 类型
string
.status.taskSpec.stepTemplate.command
- 描述
- 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
- 类型
array
.status.taskSpec.stepTemplate.command[]
- 类型
string
.status.taskSpec.stepTemplate.computeResources
- 描述
- ComputeResources required by this Step. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.status.taskSpec.stepTemplate.computeResources.claims
- 描述
- 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.
- 类型
array
.status.taskSpec.stepTemplate.computeResources.claims[]
- 描述
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- 类型
object- 必填
name
.status.taskSpec.stepTemplate.computeResources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.status.taskSpec.stepTemplate.computeResources.requests
- 描述
- 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/
- 类型
object
.status.taskSpec.stepTemplate.env
- 描述
- List of environment variables to set in the Step. Cannot be updated.
- 类型
array
.status.taskSpec.stepTemplate.env[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.status.taskSpec.stepTemplate.env[].valueFrom
- 描述
- Source for the environment variable's value. Cannot be used if value is not empty.
- 类型
object
.status.taskSpec.stepTemplate.env[].valueFrom.configMapKeyRef
- 描述
- Selects a key of a ConfigMap.
- 类型
object- 必填
key
.status.taskSpec.stepTemplate.env[].valueFrom.fieldRef
- 描述
- 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.
- 类型
object- 必填
fieldPath
.status.taskSpec.stepTemplate.env[].valueFrom.resourceFieldRef
- 描述
- 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.
- 类型
object- 必填
resource
.status.taskSpec.stepTemplate.env[].valueFrom.secretKeyRef
- 描述
- Selects a key of a secret in the pod's namespace
- 类型
object- 必填
key
.status.taskSpec.stepTemplate.envFrom
- 描述
- 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.
- 类型
array
.status.taskSpec.stepTemplate.envFrom[]
- 描述
- EnvFromSource represents the source of a set of ConfigMaps
- 类型
object
.status.taskSpec.stepTemplate.envFrom[].configMapRef
- 描述
- The ConfigMap to select from
- 类型
object
.status.taskSpec.stepTemplate.envFrom[].secretRef
- 描述
- The Secret to select from
- 类型
object
.status.taskSpec.stepTemplate.securityContext
- 描述
- 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/
- 类型
object
.status.taskSpec.stepTemplate.securityContext.appArmorProfile
- 描述
- 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.
- 类型
object- 必填
type
.status.taskSpec.stepTemplate.securityContext.capabilities
- 描述
- 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.
- 类型
object
.status.taskSpec.stepTemplate.securityContext.capabilities.add
- 描述
- Added capabilities
- 类型
array
.status.taskSpec.stepTemplate.securityContext.capabilities.add[]
- 描述
- Capability represent POSIX capabilities type
- 类型
string
.status.taskSpec.stepTemplate.securityContext.capabilities.drop
- 描述
- Removed capabilities
- 类型
array
.status.taskSpec.stepTemplate.securityContext.capabilities.drop[]
- 描述
- Capability represent POSIX capabilities type
- 类型
string
.status.taskSpec.stepTemplate.securityContext.seLinuxOptions
- 描述
- 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.
- 类型
object
.status.taskSpec.stepTemplate.securityContext.seccompProfile
- 描述
- 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.
- 类型
object- 必填
type
.status.taskSpec.stepTemplate.securityContext.windowsOptions
- 描述
- 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.
- 类型
object
.status.taskSpec.stepTemplate.volumeDevices
- 描述
- volumeDevices is the list of block devices to be used by the Step.
- 类型
array
.status.taskSpec.stepTemplate.volumeDevices[]
- 描述
- volumeDevice describes a mapping of a raw block device within a container.
- 类型
object- 必填
devicePathname
.status.taskSpec.stepTemplate.volumeMounts
- 描述
- Volumes to mount into the Step's filesystem. Cannot be updated.
- 类型
array
.status.taskSpec.stepTemplate.volumeMounts[]
- 描述
- VolumeMount describes a mounting of a Volume within a container.
- 类型
object- 必填
mountPathname
.status.taskSpec.steps
- 描述
- Steps are the steps of the build; each step is run sequentially with the source mounted into /workspace.
- 类型
array
.status.taskSpec.steps[]
- 描述
- Step runs a subcomponent of a Task
- 类型
object- 必填
name
.status.taskSpec.steps[].args
- 描述
- 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
- 类型
array
.status.taskSpec.steps[].args[]
- 类型
string
.status.taskSpec.steps[].command
- 描述
- 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
- 类型
array
.status.taskSpec.steps[].command[]
- 类型
string
.status.taskSpec.steps[].computeResources
- 描述
- ComputeResources required by this Step. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.status.taskSpec.steps[].computeResources.claims
- 描述
- 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.
- 类型
array
.status.taskSpec.steps[].computeResources.claims[]
- 描述
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- 类型
object- 必填
name
.status.taskSpec.steps[].computeResources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.status.taskSpec.steps[].computeResources.requests
- 描述
- 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/
- 类型
object
.status.taskSpec.steps[].env
- 描述
- List of environment variables to set in the Step. Cannot be updated.
- 类型
array
.status.taskSpec.steps[].env[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.status.taskSpec.steps[].env[].valueFrom
- 描述
- Source for the environment variable's value. Cannot be used if value is not empty.
- 类型
object
.status.taskSpec.steps[].env[].valueFrom.configMapKeyRef
- 描述
- Selects a key of a ConfigMap.
- 类型
object- 必填
key
.status.taskSpec.steps[].env[].valueFrom.fieldRef
- 描述
- 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.
- 类型
object- 必填
fieldPath
.status.taskSpec.steps[].env[].valueFrom.resourceFieldRef
- 描述
- 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.
- 类型
object- 必填
resource
.status.taskSpec.steps[].env[].valueFrom.secretKeyRef
- 描述
- Selects a key of a secret in the pod's namespace
- 类型
object- 必填
key
.status.taskSpec.steps[].envFrom
- 描述
- 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.
- 类型
array
.status.taskSpec.steps[].envFrom[]
- 描述
- EnvFromSource represents the source of a set of ConfigMaps
- 类型
object
.status.taskSpec.steps[].envFrom[].configMapRef
- 描述
- The ConfigMap to select from
- 类型
object
.status.taskSpec.steps[].envFrom[].secretRef
- 描述
- The Secret to select from
- 类型
object
.status.taskSpec.steps[].params
- 描述
- Params declares parameters passed to this step action.
- 类型
array
.status.taskSpec.steps[].params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.status.taskSpec.steps[].ref
- 描述
- Contains the reference to an existing StepAction.
- 类型
object
.status.taskSpec.steps[].ref.params
- 描述
- 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.
- 类型
array
.status.taskSpec.steps[].ref.params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.status.taskSpec.steps[].results
- 描述
- 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.
- 类型
array
.status.taskSpec.steps[].results[]
- 描述
- StepResult used to describe the Results of a Step.
- 类型
object- 必填
name
.status.taskSpec.steps[].results[].properties
- 描述
- Properties is the JSON Schema properties to support key-value pairs results.
- 类型
object
.status.taskSpec.steps[].securityContext
- 描述
- 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/
- 类型
object
.status.taskSpec.steps[].securityContext.appArmorProfile
- 描述
- 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.
- 类型
object- 必填
type
.status.taskSpec.steps[].securityContext.capabilities
- 描述
- 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.
- 类型
object
.status.taskSpec.steps[].securityContext.capabilities.add
- 描述
- Added capabilities
- 类型
array
.status.taskSpec.steps[].securityContext.capabilities.add[]
- 描述
- Capability represent POSIX capabilities type
- 类型
string
.status.taskSpec.steps[].securityContext.capabilities.drop
- 描述
- Removed capabilities
- 类型
array
.status.taskSpec.steps[].securityContext.capabilities.drop[]
- 描述
- Capability represent POSIX capabilities type
- 类型
string
.status.taskSpec.steps[].securityContext.seLinuxOptions
- 描述
- 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.
- 类型
object
.status.taskSpec.steps[].securityContext.seccompProfile
- 描述
- 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.
- 类型
object- 必填
type
.status.taskSpec.steps[].securityContext.windowsOptions
- 描述
- 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.
- 类型
object
.status.taskSpec.steps[].stderrConfig
- 描述
- Stores configuration for the stderr stream of the step.
- 类型
object
.status.taskSpec.steps[].stdoutConfig
- 描述
- Stores configuration for the stdout stream of the step.
- 类型
object
.status.taskSpec.steps[].volumeDevices
- 描述
- volumeDevices is the list of block devices to be used by the Step.
- 类型
array
.status.taskSpec.steps[].volumeDevices[]
- 描述
- volumeDevice describes a mapping of a raw block device within a container.
- 类型
object- 必填
devicePathname
.status.taskSpec.steps[].volumeMounts
- 描述
- Volumes to mount into the Step's filesystem. Cannot be updated.
- 类型
array
.status.taskSpec.steps[].volumeMounts[]
- 描述
- VolumeMount describes a mounting of a Volume within a container.
- 类型
object- 必填
mountPathname
.status.taskSpec.steps[].when
- 描述
- When is a list of when expressions that need to be true for the task to run
- 类型
array
.status.taskSpec.steps[].when[]
- 描述
- 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
- 类型
object
.status.taskSpec.steps[].when[].values
- 描述
- Values is an array of strings, which is compared against the input, for guard checking It must be non-empty
- 类型
array
.status.taskSpec.steps[].when[].values[]
- 类型
string
.status.taskSpec.steps[].workspaces
- 描述
- 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.
- 类型
array
.status.taskSpec.steps[].workspaces[]
- 描述
- WorkspaceUsage is used by a Step or Sidecar to declare that it wants isolated access to a Workspace defined in a Task.
- 类型
object- 必填
mountPathname
.status.taskSpec.workspaces
- 描述
- Workspaces are the volumes that this Task requires.
- 类型
array
.status.taskSpec.workspaces[]
- 描述
- WorkspaceDeclaration is a declaration of a volume that a Task requires.
- 类型
object- 必填
name
API 端点
可用的 API 端点如下:
/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
- HTTP 方法
DELETE- 描述
- delete collection of TaskRun
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind TaskRun
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new TaskRun
- 查询参数
- 请求体参数
- HTTP 响应
/apis/tekton.dev/v1/namespaces/{namespace}/taskruns/{name}
- HTTP 方法
DELETE- 描述
- delete the specified TaskRun
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified TaskRun
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified TaskRun
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified TaskRun
- 查询参数
- 请求体参数
- HTTP 响应