StepAction [tekton.dev/v1]
- 描述
- StepAction represents the actionable components of Step. The Step can only reference it from the cluster or using remote resolution.
- 类型
object
规格
.spec
- 描述
- Spec holds the desired state of the Step from the client
- 类型
object
.spec.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
.spec.args[]
- 类型
string
.spec.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
.spec.command[]
- 类型
string
.spec.env
- 描述
- List of environment variables to set in the container. Cannot be updated.
- 类型
array
.spec.env[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.spec.env[].valueFrom
- 描述
- Source for the environment variable's value. Cannot be used if value is not empty.
- 类型
object
.spec.env[].valueFrom.configMapKeyRef
- 描述
- Selects a key of a ConfigMap.
- 类型
object- 必填
key
.spec.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.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.env[].valueFrom.secretKeyRef
- 描述
- Selects a key of a secret in the pod's namespace
- 类型
object- 必填
key
.spec.params
- 描述
- Params is a list of input parameters required to run the stepAction. Params must be supplied as inputs in Steps unless they declare a defaultvalue.
- 类型
array
.spec.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
.spec.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
.spec.params[].enum[]
- 类型
string
.spec.params[].properties
- 描述
- Properties is the JSON Schema properties to support key-value pairs parameter.
- 类型
object
.spec.results
- 描述
- Results are values that this StepAction can output
- 类型
array
.spec.results[]
- 描述
- StepResult used to describe the Results of a Step.
- 类型
object- 必填
name
.spec.results[].properties
- 描述
- Properties is the JSON Schema properties to support key-value pairs results.
- 类型
object
.spec.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/ The value set in StepAction will take precedence over the value from Task.
- 类型
object
.spec.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
.spec.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
.spec.securityContext.capabilities.add
- 描述
- Added capabilities
- 类型
array
.spec.securityContext.capabilities.add[]
- 描述
- Capability represent POSIX capabilities type
- 类型
string
.spec.securityContext.capabilities.drop
- 描述
- Removed capabilities
- 类型
array
.spec.securityContext.capabilities.drop[]
- 描述
- Capability represent POSIX capabilities type
- 类型
string
.spec.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
.spec.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
.spec.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
.spec.volumeMounts
- 描述
- Volumes to mount into the Step's filesystem. Cannot be updated.
- 类型
array
.spec.volumeMounts[]
- 描述
- VolumeMount describes a mounting of a Volume within a container.
- 类型
object- 必填
mountPathname
API 端点
可用的 API 端点如下:
/apis/tekton.dev/v1beta1/namespaces/{namespace}/stepactionsDELETE: delete collection of StepActionGET: list objects of kind StepActionPOST: create a new StepAction
/apis/tekton.dev/v1beta1/namespaces/{namespace}/stepactions/{name}DELETE: delete the specified StepActionGET: read the specified StepActionPATCH: partially update the specified StepActionPUT: replace the specified StepAction
/apis/tekton.dev/v1beta1/namespaces/{namespace}/stepactions
- HTTP 方法
DELETE- 描述
- delete collection of StepAction
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind StepAction
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new StepAction
- 查询参数
- 请求体参数
- HTTP 响应
/apis/tekton.dev/v1beta1/namespaces/{namespace}/stepactions/{name}
- HTTP 方法
DELETE- 描述
- delete the specified StepAction
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified StepAction
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified StepAction
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified StepAction
- 查询参数
- 请求体参数
- HTTP 响应