CustomRun [tekton.dev/v1]
- 描述
- CustomRun represents a single execution of a Custom Task.
- 类型
object
规格
.spec
- 描述
- CustomRunSpec defines the desired state of CustomRun
- 类型
object
.spec.customRef
- 描述
- TaskRef can be used to refer to a specific instance of a task.
- 类型
object
.spec.customRef.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.customRef.params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.spec.customSpec
- 描述
- Spec is a specification of a custom task
- 类型
object
.spec.customSpec.spec
- 描述
- Spec is a specification of a custom task
- 类型
object
.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.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
- 描述
- CustomRunStatus defines the observed state of CustomRun
- 类型
object
.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.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.results
- 描述
- Results reports any output result values to be consumed by later tasks in a pipeline.
- 类型
array
.status.results[]
- 描述
- CustomRunResult used to describe the results of a task
- 类型
object- 必填
namevalue
API 端点
可用的 API 端点如下:
/apis/tekton.dev/v1beta1/namespaces/{namespace}/customrunsDELETE: delete collection of CustomRunGET: list objects of kind CustomRunPOST: create a new CustomRun
/apis/tekton.dev/v1beta1/namespaces/{namespace}/customruns/{name}DELETE: delete the specified CustomRunGET: read the specified CustomRunPATCH: partially update the specified CustomRunPUT: replace the specified CustomRun
/apis/tekton.dev/v1beta1/namespaces/{namespace}/customruns
- HTTP 方法
DELETE- 描述
- delete collection of CustomRun
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind CustomRun
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new CustomRun
- 查询参数
- 请求体参数
- HTTP 响应
/apis/tekton.dev/v1beta1/namespaces/{namespace}/customruns/{name}
- HTTP 方法
DELETE- 描述
- delete the specified CustomRun
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified CustomRun
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified CustomRun
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified CustomRun
- 查询参数
- 请求体参数
- HTTP 响应