• Русский
  • CustomRun [tekton.dev/v1]

    tekton.dev group

    CustomRun represents a single execution of a Custom Task.

    v1beta1 version
    spec object

    CustomRunSpec defines the desired state of CustomRun

    customRef object

    TaskRef can be used to refer to a specific instance of a task.

    apiVersion string

    API version of the referent Note: A Task with non-empty APIVersion and Kind is considered a Custom Task

    bundle string

    Bundle url reference to a Tekton Bundle.

    Deprecated: Please use ResolverRef with the bundles resolver instead. The field is staying there for go client backward compatibility, but is not used/allowed anymore.

    kind string

    TaskKind indicates the Kind of the Task:

    1. Namespaced Task when Kind is set to "Task". If Kind is "", it defaults to "Task".
    2. Custom Task when Kind is non-empty and APIVersion is non-empty
    name string
    params []object

    Param declares an ParamValues to use for the parameter called name.

    name string required
    value required
    resolver string

    Resolver is the name of the resolver that should perform resolution of the referenced Tekton resource, such as "git".

    customSpec object

    Spec is a specification of a custom task

    apiVersion string
    kind string
    metadata object

    PipelineTaskMetadata contains the labels or annotations for an EmbeddedTask

    annotations object
    labels object
    spec object

    Spec is a specification of a custom task

    params []object

    Param declares an ParamValues to use for the parameter called name.

    name string required
    value required
    retries integer

    Used for propagating retries count to custom tasks

    serviceAccountName string
    status string

    Used for cancelling a customrun (and maybe more later on)

    statusMessage string

    Status message for cancellation.

    timeout string

    Time after which the custom-task times out. Refer Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration

    workspaces []object

    WorkspaceBinding maps a Task's declared workspace to a Volume.

    configMap object

    ConfigMap represents a configMap that should populate this workspace.

    defaultMode integer

    defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

    items []object

    Maps a string key to a path within a volume.

    key string required

    key is the key to project.

    mode integer

    mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

    path string required

    path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.

    name string

    Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

    optional boolean

    optional specify whether the ConfigMap or its keys must be defined

    csi object

    CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.

    driver string required

    driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.

    fsType string

    fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.

    nodePublishSecretRef object

    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.

    name string

    Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

    readOnly boolean

    readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).

    volumeAttributes object

    volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.

    emptyDir object

    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.

    medium string

    medium represents what type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir

    sizeLimit

    sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir

    name string required

    Name is the name of the workspace populated by the volume.

    persistentVolumeClaim object

    PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Either this OR EmptyDir can be used.

    claimName string required

    claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

    readOnly boolean

    readOnly Will force the ReadOnly setting in VolumeMounts. Default false.

    projected object

    Projected represents a projected volume that should populate this workspace.

    defaultMode integer

    defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

    sources []object

    Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.

    clusterTrustBundle object

    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.

    labelSelector object

    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".

    matchExpressions []object

    A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

    key string required

    key is the label key that the selector applies to.

    operator string required

    operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

    values []string

    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.

    matchLabels object

    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.

    name string

    Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.

    optional boolean

    If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.

    path string required

    Relative path from the volume root to write the bundle.

    signerName string

    Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.

    configMap object

    configMap information about the configMap data to project

    items []object

    Maps a string key to a path within a volume.

    key string required

    key is the key to project.

    mode integer

    mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

    path string required

    path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.

    name string

    Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

    optional boolean

    optional specify whether the ConfigMap or its keys must be defined

    downwardAPI object

    downwardAPI information about the downwardAPI data to project

    items []object

    DownwardAPIVolumeFile represents information to create the file containing the pod field

    fieldRef object

    Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.

    apiVersion string

    Version of the schema the FieldPath is written in terms of, defaults to "v1".

    fieldPath string required

    Path of the field to select in the specified API version.

    mode integer

    Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

    path string required

    Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'

    resourceFieldRef object

    Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.

    containerName string

    Container name: required for volumes, optional for env vars

    divisor

    Specifies the output format of the exposed resources, defaults to "1"

    resource string required

    Required: resource to select

    secret object

    secret information about the secret data to project

    items []object

    Maps a string key to a path within a volume.

    key string required

    key is the key to project.

    mode integer

    mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

    path string required

    path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.

    name string

    Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

    optional boolean

    optional field specify whether the Secret or its key must be defined

    serviceAccountToken object

    serviceAccountToken is information about the serviceAccountToken data to project

    audience string

    audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.

    expirationSeconds integer

    expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.

    path string required

    path is the path relative to the mount point of the file to project the token into.

    secret object

    Secret represents a secret that should populate this workspace.

    defaultMode integer

    defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

    items []object

    Maps a string key to a path within a volume.

    key string required

    key is the key to project.

    mode integer

    mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

    path string required

    path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.

    optional boolean

    optional field specify whether the Secret or its keys must be defined

    secretName string

    secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret

    subPath string

    SubPath is optionally a directory on the volume which should be used for this binding (i.e. the volume will be mounted at this sub directory).

    volumeClaimTemplate

    VolumeClaimTemplate is a template for a claim that will be created in the same namespace. The PipelineRun controller is responsible for creating a unique claim for each instance of PipelineRun. See PersistentVolumeClaim (API version: v1)

    status object

    CustomRunStatus defines the observed state of CustomRun

    annotations object

    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.

    completionTime string

    CompletionTime is the time the build completed.

    conditions []object

    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

    lastTransitionTime string

    LastTransitionTime is the last time the condition transitioned from one status to another. We use VolatileTime in place of metav1.Time to exclude this from creating equality.Semantic differences (all other things held constant).

    message string

    A human readable message indicating details about the transition.

    reason string

    The reason for the condition's last transition.

    severity string

    Severity with which to treat failures of this type of condition. When this is not specified, it defaults to Error.

    status string required

    Status of the condition, one of True, False, Unknown.

    type string required

    Type of condition.

    extraFields

    ExtraFields holds arbitrary fields provided by the custom task controller.

    observedGeneration integer

    ObservedGeneration is the 'Generation' of the Service that was last processed by the controller.

    results []object

    CustomRunResult used to describe the results of a task

    name string required

    Name the given name

    value string required

    Value the given value of the result

    retriesStatus

    RetriesStatus contains the history of CustomRunStatus, in case of a retry. See CustomRun.status (API version: tekton.dev/v1beta1)

    startTime string

    StartTime is the time the build is actually started.