Trigger [triggers.tekton.dev/v1beta1]

描述
Trigger defines a mapping of an input event to parameters. This is used to extract information from events to be passed to TriggerTemplates within a Trigger.
类型
object

规格

属性类型描述
apiVersionstring

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

kindstring

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

metadataObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

specobject

Spec holds the desired state of the Trigger

.spec

描述
Spec holds the desired state of the Trigger
类型
object
必填
bindingstemplate
属性类型描述
bindingsarray
interceptorsarray
namestring
serviceAccountNamestring

ServiceAccountName optionally associates credentials with each trigger; Unlike EventListeners, this should be scoped to the same namespace as the Trigger itself

templateobject

.spec.bindings

类型
array

.spec.bindings[]

类型
object
属性类型描述
apiversionstring

APIVersion of the binding ref

kindstring

Kind can only be provided if Ref is also provided. Defaults to TriggerBinding

namestring

Name is the name of the binding param Mutually exclusive with Ref

refstring

Ref is a reference to a TriggerBinding kind. Mutually exclusive with Name

valuestring

Value is the value of the binding param. Can contain JSONPath Has to be pointer since "" is a valid value Required if Name is also specified.

.spec.interceptors

类型
array

.spec.interceptors[]

描述
TriggerInterceptor provides a hook to intercept and pre-process events
类型
object
必填
ref
属性类型描述
namestring

Optional name to identify the current interceptor configuration

paramsarray

Params are the params to send to the interceptor

refobject

Ref refers to the Interceptor to use

webhookobject

WebhookInterceptor refers to an old style webhook interceptor service

.spec.interceptors[].params

描述
Params are the params to send to the interceptor
类型
array

.spec.interceptors[].params[]

描述
InterceptorParams defines a key-value pair that can be passed on an interceptor
类型
object
必填
namevalue
属性类型描述
namestring
value

.spec.interceptors[].ref

描述
Ref refers to the Interceptor to use
类型
object
属性类型描述
apiVersionstring

API version of the referent

kindstring

InterceptorKind indicates the kind of the Interceptor, namespaced or cluster scoped.

namestring

Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names

.spec.interceptors[].webhook

描述
WebhookInterceptor refers to an old style webhook interceptor service
类型
object
属性类型描述
headerarray

Header is a group of key-value pairs that can be appended to the interceptor request headers. This allows the interceptor to make decisions specific to an EventListenerTrigger.

objectRefobject

ObjectRef is a reference to an object that will resolve to a cluster DNS name to use as the EventInterceptor. Either objectRef or url can be specified

urlstring

.spec.interceptors[].webhook.header

描述
Header is a group of key-value pairs that can be appended to the interceptor request headers. This allows the interceptor to make decisions specific to an EventListenerTrigger.
类型
array

.spec.interceptors[].webhook.header[]

描述
Param declares an ParamValues to use for the parameter called name.
类型
object
必填
namevalue
属性类型描述
namestring
value

.spec.interceptors[].webhook.objectRef

描述
ObjectRef is a reference to an object that will resolve to a cluster DNS name to use as the EventInterceptor. Either objectRef or url can be specified
类型
object
属性类型描述
apiVersionstring

API version of the referent.

fieldPathstring

If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.

kindstring

Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

namestring

Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

namespacestring

Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

resourceVersionstring

Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency

uidstring

UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids

.spec.template

类型
object
属性类型描述
apiversionstring
refstring
specobject

TriggerTemplateSpec holds the desired state of TriggerTemplate

.spec.template.spec

描述
TriggerTemplateSpec holds the desired state of TriggerTemplate
类型
object
属性类型描述
paramsarray
resourcetemplatesarray

.spec.template.spec.params

类型
array

.spec.template.spec.params[]

描述
ParamSpec defines an arbitrary named input whose value can be supplied by a `Param`.
类型
object
必填
name
属性类型描述
defaultstring

Default is the value a parameter takes if no input value via a Param is supplied.

descriptionstring

Description is a user-facing description of the parameter that may be used to populate a UI.

namestring

Name declares the name by which a parameter is referenced.

.spec.template.spec.resourcetemplates

类型
array

.spec.template.spec.resourcetemplates[]

描述
TriggerResourceTemplate describes a resource to create
类型
object

API 端点

可用的 API 端点如下:

  • /apis/triggers.tekton.dev/v1beta1/namespaces/{namespace}/triggers
    • DELETE: delete collection of Trigger
    • GET: list objects of kind Trigger
    • POST: create a new Trigger
  • /apis/triggers.tekton.dev/v1beta1/namespaces/{namespace}/triggers/{name}
    • DELETE: delete the specified Trigger
    • GET: read the specified Trigger
    • PATCH: partially update the specified Trigger
    • PUT: replace the specified Trigger

/apis/triggers.tekton.dev/v1beta1/namespaces/{namespace}/triggers

HTTP 方法
DELETE
描述
delete collection of Trigger
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
list objects of kind Trigger
HTTP 响应
HTTP 状态码响应体
200 - OKTriggerList schema
401 - UnauthorizedEmpty
HTTP 方法
POST
描述
create a new Trigger
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyTrigger schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKTrigger schema
201 - CreatedTrigger schema
202 - AcceptedTrigger schema
401 - UnauthorizedEmpty

/apis/triggers.tekton.dev/v1beta1/namespaces/{namespace}/triggers/{name}

HTTP 方法
DELETE
描述
delete the specified Trigger
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
read the specified Trigger
HTTP 响应
HTTP 状态码响应体
200 - OKTrigger schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update the specified Trigger
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP 响应
HTTP 状态码响应体
200 - OKTrigger schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace the specified Trigger
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyTrigger schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKTrigger schema
201 - CreatedTrigger schema
401 - UnauthorizedEmpty