Triggers API
Packages:
triggers.tekton.dev/v1alpha1
Package v1alpha1 contains API Schema definitions for the triggers v1alpha1 API group
ClusterTriggerBinding
ClusterTriggerBinding is a TriggerBinding with a cluster scope. ClusterTriggerBindings are used to represent TriggerBindings that should be publicly addressable from any namespace in the cluster.
Field | Description | ||
---|---|---|---|
apiVersion string |
triggers.tekton.dev/v1alpha1
|
||
kind string |
ClusterTriggerBinding |
||
metadata Kubernetes meta/v1.ObjectMeta |
(Optional)
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||
spec TriggerBindingSpec |
(Optional)
Spec holds the desired state of the ClusterTriggerBinding from the client
|
||
status TriggerBindingStatus |
(Optional) |
EventListener
EventListener exposes a service to accept HTTP event payloads.
Field | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
apiVersion string |
triggers.tekton.dev/v1alpha1
|
||||||||||
kind string |
EventListener |
||||||||||
metadata Kubernetes meta/v1.ObjectMeta |
(Optional)
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||||||||||
spec EventListenerSpec |
(Optional)
Spec holds the desired state of the EventListener from the client
|
||||||||||
status EventListenerStatus |
(Optional) |
Trigger
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.
Field | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
apiVersion string |
triggers.tekton.dev/v1alpha1
|
||||||||||
kind string |
Trigger |
||||||||||
metadata Kubernetes meta/v1.ObjectMeta |
(Optional)
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||||||||||
spec TriggerSpec |
(Optional)
Spec holds the desired state of the Trigger
|
TriggerBinding
TriggerBinding 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.
Field | Description | ||
---|---|---|---|
apiVersion string |
triggers.tekton.dev/v1alpha1
|
||
kind string |
TriggerBinding |
||
metadata Kubernetes meta/v1.ObjectMeta |
(Optional)
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||
spec TriggerBindingSpec |
(Optional)
Spec holds the desired state of the TriggerBinding
|
||
status TriggerBindingStatus |
(Optional) |
BitbucketInterceptor
(Appears on:TriggerInterceptor)
BitbucketInterceptor provides a webhook to intercept and pre-process events
Field | Description |
---|---|
secretRef SecretRef |
|
eventTypes []string |
CELInterceptor
(Appears on:TriggerInterceptor)
CELInterceptor provides a webhook to intercept and pre-process events
Field | Description |
---|---|
filter string |
|
overlays []CELOverlay |
CELOverlay
(Appears on:CELInterceptor)
CELOverlay provides a way to modify the request body using DeprecatedCEL expressions
Field | Description |
---|---|
key string |
|
expression string |
ClientConfig
(Appears on:ClusterInterceptorSpec, InterceptorSpec)
ClientConfig describes how a client can communicate with the Interceptor
Field | Description |
---|---|
caBundle []byte |
CaBundle is a PEM encoded CA bundle which will be used to validate the clusterinterceptor server certificate |
url knative.dev/pkg/apis.URL |
URL is a fully formed URL pointing to the interceptor Mutually exclusive with Service |
service ServiceReference |
Service is a reference to a Service object where the interceptor is running Mutually exclusive with URL |
ClusterInterceptor
ClusterInterceptor describes a pluggable interceptor including configuration such as the fields it accepts and its deployment address. The type is based on the Validating/MutatingWebhookConfiguration types for configuring AdmissionWebhooks
Field | Description | ||
---|---|---|---|
metadata Kubernetes meta/v1.ObjectMeta |
(Optional)
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||
spec ClusterInterceptorSpec |
|
||
status ClusterInterceptorStatus |
(Optional) |
ClusterInterceptorSpec
(Appears on:ClusterInterceptor)
ClusterInterceptorSpec describes the Spec for an ClusterInterceptor
Field | Description |
---|---|
clientConfig ClientConfig |
ClusterInterceptorStatus
(Appears on:ClusterInterceptor)
ClusterInterceptorStatus holds the status of the ClusterInterceptor
Field | Description |
---|---|
Status knative.dev/pkg/apis/duck/v1.Status |
(Members of |
AddressStatus knative.dev/pkg/apis/duck/v1.AddressStatus |
(Members of ClusterInterceptor is Addressable and exposes the URL where the Interceptor is running |
CustomResource
(Appears on:Resources)
Field | Description |
---|---|
RawExtension k8s.io/apimachinery/pkg/runtime.RawExtension |
(Members of |
EventListenerConfig
(Appears on:EventListenerStatus)
EventListenerConfig stores configuration for resources generated by the EventListener
Field | Description |
---|---|
generatedName string |
GeneratedResourceName is the name given to all resources reconciled by the EventListener |
EventListenerSpec
(Appears on:EventListener)
EventListenerSpec defines the desired state of the EventListener, represented by a list of Triggers.
Field | Description |
---|---|
serviceAccountName string |
|
triggers []EventListenerTrigger |
|
namespaceSelector NamespaceSelector |
|
labelSelector Kubernetes meta/v1.LabelSelector |
|
resources Resources |
EventListenerStatus
(Appears on:EventListener)
EventListenerStatus holds the status of the EventListener
Field | Description |
---|---|
Status knative.dev/pkg/apis/duck/v1.Status |
(Members of |
AddressStatus knative.dev/pkg/apis/duck/v1alpha1.AddressStatus |
(Members of EventListener is Addressable. It currently exposes the service DNS address of the the EventListener sink |
configuration EventListenerConfig |
Configuration stores configuration for the EventListener service |
EventListenerTrigger
(Appears on:EventListenerSpec)
EventListenerTrigger represents a connection between TriggerBinding, Params, and TriggerTemplate; TriggerBinding provides extracted values for TriggerTemplate to then create resources from. TriggerRef can also be provided instead of TriggerBinding, Interceptors and TriggerTemplate
Field | Description |
---|---|
bindings []TriggerSpecBinding |
|
template TriggerSpecTemplate |
|
triggerRef string |
|
name string |
(Optional) |
interceptors []TriggerInterceptor |
|
serviceAccountName string |
(Optional)
ServiceAccountName optionally associates credentials with each trigger; more granular authorization for who is allowed to utilize the associated pipeline vs. defaulting to whatever permissions are associated with the entire EventListener and associated sink facilitates multi-tenant model based scenarios |
GitHubInterceptor
(Appears on:TriggerInterceptor)
GitHubInterceptor provides a webhook to intercept and pre-process events
Field | Description |
---|---|
secretRef SecretRef |
|
eventTypes []string |
GitLabInterceptor
(Appears on:TriggerInterceptor)
GitLabInterceptor provides a webhook to intercept and pre-process events
Field | Description |
---|---|
secretRef SecretRef |
|
eventTypes []string |
Interceptor
Interceptor describes a pluggable interceptor including configuration such as the fields it accepts and its deployment address. The type is based on the Validating/MutatingWebhookConfiguration types for configuring AdmissionWebhooks
Field | Description | ||
---|---|---|---|
metadata Kubernetes meta/v1.ObjectMeta |
(Optional)
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||
spec InterceptorSpec |
|
||
status InterceptorStatus |
(Optional) |
InterceptorInterface
InterceptorKind
(string
alias)
(Appears on:InterceptorRef)
InterceptorKind defines the type of Interceptor used by the Trigger.
Value | Description |
---|---|
"ClusterInterceptor" |
ClusterInterceptorKind indicates that Interceptor type has a cluster scope. |
"NamespacedInterceptor" |
NamespacedInterceptorKind indicated that interceptor has a namespaced scope |
InterceptorParams
(Appears on:TriggerInterceptor)
InterceptorParams defines a key-value pair that can be passed on an interceptor
Field | Description |
---|---|
name string |
|
value k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON |
InterceptorRef
(Appears on:TriggerInterceptor)
InterceptorRef provides a Reference to a ClusterInterceptor
Field | Description |
---|---|
name string |
Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names |
kind InterceptorKind |
(Optional)
InterceptorKind indicates the kind of the Interceptor, namespaced or cluster scoped. |
apiVersion string |
(Optional)
API version of the referent |
InterceptorRequest
Do not generate DeepCopy(). See #827
Field | Description |
---|---|
body string |
Body is the incoming HTTP event body. We use a “string” representation of the JSON body
in order to preserve the body exactly as it was sent (including spaces etc.). This is necessary
for some interceptors e.g. GitHub for validating the body with a signature. While []byte can also
store an exact representation of the body, |
header map[string][]string |
Header are the headers for the incoming HTTP event |
extensions map[string]interface{} |
Extensions are extra values that are added by previous interceptors in a chain |
interceptor_params map[string]interface{} |
InterceptorParams are the user specified params for interceptor in the Trigger |
context TriggerContext |
Context contains additional metadata about the event being processed |
InterceptorResponse
Do not generate Deepcopy(). See #827
Field | Description |
---|---|
extensions map[string]interface{} |
Extensions are additional fields that is added to the interceptor event. |
continue bool |
Continue indicates if the EventListener should continue processing the Trigger or not |
status Status |
Status is an Error status containing details on any interceptor processing errors |
InterceptorSpec
(Appears on:Interceptor)
InterceptorSpec describes the Spec for an Interceptor
Field | Description |
---|---|
clientConfig ClientConfig |
InterceptorStatus
(Appears on:Interceptor)
InterceptorStatus holds the status of the Interceptor
Field | Description |
---|---|
Status knative.dev/pkg/apis/duck/v1.Status |
(Members of |
AddressStatus knative.dev/pkg/apis/duck/v1.AddressStatus |
(Members of Interceptor is Addressable and exposes the URL where the Interceptor is running |
KubernetesResource
(Appears on:Resources)
Field | Description | ||
---|---|---|---|
replicas int32 |
|||
serviceType Kubernetes core/v1.ServiceType |
|||
spec knative.dev/pkg/apis/duck/v1.WithPodSpec |
|
NamespaceSelector
(Appears on:EventListenerSpec)
NamespaceSelector is a selector for selecting either all namespaces or a list of namespaces.
Field | Description |
---|---|
matchNames []string |
List of namespace names. |
Param
(Appears on:TriggerBindingSpec)
Param defines a string value to be used for a ParamSpec with the same name.
Field | Description |
---|---|
name string |
|
value string |
ParamSpec
(Appears on:TriggerTemplateSpec)
ParamSpec defines an arbitrary named input whose value can be supplied by a
Param
.
Field | Description |
---|---|
name string |
Name declares the name by which a parameter is referenced. |
description string |
(Optional)
Description is a user-facing description of the parameter that may be used to populate a UI. |
default string |
(Optional)
Default is the value a parameter takes if no input value via a Param is supplied. |
Resources
(Appears on:EventListenerSpec)
Field | Description |
---|---|
kubernetesResource KubernetesResource |
|
customResource CustomResource |
SecretRef
(Appears on:BitbucketInterceptor, GitHubInterceptor, GitLabInterceptor)
SecretRef contains the information required to reference a single secret string This is needed because the other secretRef types are not cross-namespace and do not actually contain the “SecretName” field, which allows us to access a single secret value.
Field | Description |
---|---|
secretKey string |
|
secretName string |
ServiceReference
(Appears on:ClientConfig)
ServiceReference is a reference to a Service object with an optional path
Field | Description |
---|---|
name string |
Name is the name of the service |
namespace string |
Namespace is the namespace of the service |
path string |
(Optional)
Path is an optional URL path |
port int32 |
Port is a valid port number |
Status
(Appears on:InterceptorResponse, StatusError)
Field | Description |
---|---|
code google.golang.org/grpc/codes.Code |
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. |
message string |
A developer-facing error message, which should be in English. |
StatusError
Field | Description |
---|---|
s Status |
TriggerBindingInterface
TriggerBindingInterface is implemented by TriggerBinding and ClusterTriggerBinding
TriggerBindingKind
(string
alias)
(Appears on:TriggerSpecBinding)
Check that EventListener may be validated and defaulted. TriggerBindingKind defines the type of TriggerBinding used by the EventListener.
Value | Description |
---|---|
"ClusterTriggerBinding" |
ClusterTriggerBindingKind indicates that triggerbinding type has a cluster scope. |
"TriggerBinding" |
NamespacedTriggerBindingKind indicates that triggerbinding type has a namespace scope. |
TriggerBindingSpec
(Appears on:ClusterTriggerBinding, TriggerBinding)
TriggerBindingSpec defines the desired state of the TriggerBinding.
Field | Description |
---|---|
params []Param |
Params defines the parameter mapping from the given input event. |
TriggerBindingStatus
(Appears on:ClusterTriggerBinding, TriggerBinding)
TriggerBindingStatus defines the observed state of TriggerBinding.
TriggerContext
(Appears on:InterceptorRequest)
Field | Description |
---|---|
event_url string |
EventURL is the URL of the incoming event |
event_id string |
EventID is a unique ID assigned by Triggers to each event |
trigger_id string |
TriggerID is of the form namespace/$ns/triggers/$name |
TriggerInterceptor
(Appears on:EventListenerTrigger, TriggerSpec)
TriggerInterceptor provides a hook to intercept and pre-process events
Field | Description |
---|---|
name string |
Optional name to identify the current interceptor configuration |
ref InterceptorRef |
Ref refers to the Interceptor to use |
params []InterceptorParams |
Params are the params to send to the interceptor |
webhook WebhookInterceptor |
WebhookInterceptor refers to an old style webhook interceptor service |
github GitHubInterceptor |
Deprecated old fields below |
gitlab GitLabInterceptor |
|
cel CELInterceptor |
|
bitbucket BitbucketInterceptor |
TriggerResourceTemplate
(Appears on:TriggerTemplateSpec)
TriggerResourceTemplate describes a resource to create
Field | Description |
---|---|
RawExtension k8s.io/apimachinery/pkg/runtime.RawExtension |
(Members of |
TriggerSpec
(Appears on:Trigger)
TriggerSpec represents a connection between TriggerSpecBinding, and TriggerSpecTemplate; TriggerSpecBinding provides extracted values for TriggerSpecTemplate to then create resources from.
Field | Description |
---|---|
bindings []TriggerSpecBinding |
|
template TriggerSpecTemplate |
|
name string |
(Optional) |
interceptors []TriggerInterceptor |
|
serviceAccountName string |
(Optional)
ServiceAccountName optionally associates credentials with each trigger; Unlike EventListeners, this should be scoped to the same namespace as the Trigger itself |
TriggerSpecBinding
(Appears on:EventListenerTrigger, TriggerSpec)
Field | Description |
---|---|
name string |
Name is the name of the binding param Mutually exclusive with Ref |
value string |
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. |
ref string |
Ref is a reference to a TriggerBinding kind. Mutually exclusive with Name |
kind TriggerBindingKind |
Kind can only be provided if Ref is also provided. Defaults to TriggerBinding |
apiversion string |
APIVersion of the binding ref |
TriggerSpecTemplate
(Appears on:EventListenerTrigger, TriggerSpec)
Field | Description |
---|---|
ref string |
|
apiversion string |
|
spec TriggerTemplateSpec |
|
TriggerTemplate
TriggerTemplate takes parameters and uses them to create CRDs
Field | Description | ||||
---|---|---|---|---|---|
metadata Kubernetes meta/v1.ObjectMeta |
(Optional)
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||||
spec TriggerTemplateSpec |
(Optional)
Spec holds the desired state of the TriggerTemplate from the client
|
||||
status TriggerTemplateStatus |
(Optional) |
TriggerTemplateSpec
(Appears on:TriggerSpecTemplate, TriggerTemplate)
TriggerTemplateSpec holds the desired state of TriggerTemplate
Field | Description |
---|---|
params []ParamSpec |
|
resourcetemplates []TriggerResourceTemplate |
TriggerTemplateStatus
(Appears on:TriggerTemplate)
TriggerTemplateStatus describes the desired state of TriggerTemplate
WebhookInterceptor
(Appears on:TriggerInterceptor)
WebhookInterceptor provides a webhook to intercept and pre-process events
Field | Description |
---|---|
objectRef Kubernetes core/v1.ObjectReference |
(Optional)
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 |
url knative.dev/pkg/apis.URL |
(Optional) |
header []github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1.Param |
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. |
triggers.tekton.dev/v1beta1
package v1beta1 contains API Schema definitions for the triggers v1beta1 API group
ClusterTriggerBinding
ClusterTriggerBinding is a TriggerBinding with a cluster scope. ClusterTriggerBindings are used to represent TriggerBindings that should be publicly addressable from any namespace in the cluster.
Field | Description | ||
---|---|---|---|
apiVersion string |
triggers.tekton.dev/v1beta1
|
||
kind string |
ClusterTriggerBinding |
||
metadata Kubernetes meta/v1.ObjectMeta |
(Optional)
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||
spec TriggerBindingSpec |
(Optional)
Spec holds the desired state of the ClusterTriggerBinding from the client
|
||
status TriggerBindingStatus |
(Optional) |
EventListener
EventListener exposes a service to accept HTTP event payloads.
Field | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
apiVersion string |
triggers.tekton.dev/v1beta1
|
||||||||||||||
kind string |
EventListener |
||||||||||||||
metadata Kubernetes meta/v1.ObjectMeta |
(Optional)
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||||||||||||||
spec EventListenerSpec |
(Optional)
Spec holds the desired state of the EventListener from the client
|
||||||||||||||
status EventListenerStatus |
(Optional) |
Trigger
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.
Field | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
apiVersion string |
triggers.tekton.dev/v1beta1
|
||||||||||
kind string |
Trigger |
||||||||||
metadata Kubernetes meta/v1.ObjectMeta |
(Optional)
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||||||||||
spec TriggerSpec |
(Optional)
Spec holds the desired state of the Trigger
|
TriggerBinding
TriggerBinding 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.
Field | Description | ||
---|---|---|---|
apiVersion string |
triggers.tekton.dev/v1beta1
|
||
kind string |
TriggerBinding |
||
metadata Kubernetes meta/v1.ObjectMeta |
(Optional)
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||
spec TriggerBindingSpec |
(Optional)
Spec holds the desired state of the TriggerBinding
|
||
status TriggerBindingStatus |
(Optional) |
BitbucketInterceptor
BitbucketInterceptor provides a webhook to intercept and pre-process events
Field | Description |
---|---|
secretRef SecretRef |
|
eventTypes []string |
CELInterceptor
CELInterceptor provides a webhook to intercept and pre-process events
Field | Description |
---|---|
filter string |
|
overlays []CELOverlay |
CELOverlay
(Appears on:CELInterceptor)
CELOverlay provides a way to modify the request body using CEL expressions
Field | Description |
---|---|
key string |
|
expression string |
CheckType
(string
alias)
(Appears on:GithubOwners)
Value | Description |
---|---|
"all" |
Set the checkType to all if both repo members or org members can submit or comment on PR to proceed |
"none" |
Set the checkType to none if neither of repo members or org members can not submit or comment on PR to proceed |
"orgMembers" |
Set the checkType to orgMembers to allow org members to submit or comment on PR to proceed |
"repoMembers" |
Set the checkType to repoMembers to allow repo members to submit or comment on PR to proceed |
CustomResource
(Appears on:Resources)
Field | Description |
---|---|
RawExtension k8s.io/apimachinery/pkg/runtime.RawExtension |
(Members of |
EventListenerConfig
(Appears on:EventListenerStatus)
EventListenerConfig stores configuration for resources generated by the EventListener
Field | Description |
---|---|
generatedName string |
GeneratedResourceName is the name given to all resources reconciled by the EventListener |
EventListenerSpec
(Appears on:EventListener)
EventListenerSpec defines the desired state of the EventListener, represented by a list of Triggers.
Field | Description |
---|---|
serviceAccountName string |
|
triggers []EventListenerTrigger |
|
triggerGroups []EventListenerTriggerGroup |
Trigger groups allow for centralized processing of an interceptor chain |
namespaceSelector NamespaceSelector |
|
labelSelector Kubernetes meta/v1.LabelSelector |
|
resources Resources |
|
cloudEventURI string |
EventListenerStatus
(Appears on:EventListener)
EventListenerStatus holds the status of the EventListener
Field | Description |
---|---|
Status knative.dev/pkg/apis/duck/v1.Status |
(Members of |
AddressStatus knative.dev/pkg/apis/duck/v1beta1.AddressStatus |
(Members of EventListener is Addressable. It currently exposes the service DNS address of the the EventListener sink |
configuration EventListenerConfig |
Configuration stores configuration for the EventListener service |
EventListenerTrigger
(Appears on:EventListenerSpec)
EventListenerTrigger represents a connection between TriggerBinding, Params, and TriggerTemplate; TriggerBinding provides extracted values for TriggerTemplate to then create resources from. TriggerRef can also be provided instead of TriggerBinding, Interceptors and TriggerTemplate
Field | Description |
---|---|
bindings []TriggerSpecBinding |
|
template TriggerSpecTemplate |
|
triggerRef string |
|
name string |
(Optional) |
interceptors []TriggerInterceptor |
|
serviceAccountName string |
(Optional)
ServiceAccountName optionally associates credentials with each trigger; more granular authorization for who is allowed to utilize the associated pipeline vs. defaulting to whatever permissions are associated with the entire EventListener and associated sink facilitates multi-tenant model based scenarios |
EventListenerTriggerGroup
(Appears on:EventListenerSpec)
EventListenerTriggerGroup defines a group of Triggers that share a common set of interceptors
Field | Description |
---|---|
name string |
|
interceptors []TriggerInterceptor |
|
triggerSelector EventListenerTriggerSelector |
EventListenerTriggerSelector
(Appears on:EventListenerTriggerGroup)
EventListenerTriggerSelector defines ways to select a group of triggers using their metadata
Field | Description |
---|---|
namespaceSelector NamespaceSelector |
|
labelSelector Kubernetes meta/v1.LabelSelector |
GitHubInterceptor
GitHubInterceptor provides a webhook to intercept and pre-process events
Field | Description |
---|---|
secretRef SecretRef |
|
eventTypes []string |
|
addChangedFiles GithubAddChangedFiles |
|
githubOwners GithubOwners |
GitLabInterceptor
GitLabInterceptor provides a webhook to intercept and pre-process events
Field | Description |
---|---|
secretRef SecretRef |
|
eventTypes []string |
GithubAddChangedFiles
(Appears on:GitHubInterceptor)
Field | Description |
---|---|
enabled bool |
|
personalAccessToken SecretRef |
GithubOwners
(Appears on:GitHubInterceptor)
Field | Description |
---|---|
enabled bool |
|
personalAccessToken SecretRef |
This param/variable is required for private repos or when checkType is set to orgMembers or repoMembers or all |
checkType CheckType |
Set the value to one of the supported values (orgMembers, repoMembers, both, none) |
InterceptorInterface
InterceptorKind
(string
alias)
(Appears on:InterceptorRef)
InterceptorKind defines the type of Interceptor used by the Trigger.
Value | Description |
---|---|
"ClusterInterceptor" |
ClusterInterceptorKind indicates that Interceptor type has a cluster scope. |
"NamespacedInterceptor" |
NamespacedInterceptorKind indicates that Interceptor type has a namespace scope. |
InterceptorParams
(Appears on:TriggerInterceptor)
InterceptorParams defines a key-value pair that can be passed on an interceptor
Field | Description |
---|---|
name string |
|
value k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON |
InterceptorRef
(Appears on:TriggerInterceptor)
InterceptorRef provides a Reference to a ClusterInterceptor
Field | Description |
---|---|
name string |
Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names |
kind InterceptorKind |
(Optional)
InterceptorKind indicates the kind of the Interceptor, namespaced or cluster scoped. |
apiVersion string |
(Optional)
API version of the referent |
InterceptorRequest
Do not generate DeepCopy(). See #827
Field | Description |
---|---|
body string |
Body is the incoming HTTP event body. We use a “string” representation of the JSON body
in order to preserve the body exactly as it was sent (including spaces etc.). This is necessary
for some interceptors e.g. GitHub for validating the body with a signature. While []byte can also
store an exact representation of the body, |
header map[string][]string |
Header are the headers for the incoming HTTP event |
extensions map[string]interface{} |
Extensions are extra values that are added by previous interceptors in a chain |
interceptor_params map[string]interface{} |
InterceptorParams are the user specified params for interceptor in the Trigger |
context TriggerContext |
Context contains additional metadata about the event being processed |
InterceptorResponse
Do not generate Deepcopy(). See #827
Field | Description |
---|---|
extensions map[string]interface{} |
Extensions are additional fields that is added to the interceptor event. |
continue bool |
Continue indicates if the EventListener should continue processing the Trigger or not |
status Status |
Status is an Error status containing details on any interceptor processing errors |
KubernetesResource
(Appears on:Resources)
Field | Description | ||
---|---|---|---|
replicas int32 |
|||
serviceType Kubernetes core/v1.ServiceType |
|||
servicePort int32 |
|||
spec knative.dev/pkg/apis/duck/v1.WithPodSpec |
|
NamespaceSelector
(Appears on:EventListenerSpec, EventListenerTriggerSelector)
NamespaceSelector is a selector for selecting either all namespaces or a list of namespaces.
Field | Description |
---|---|
matchNames []string |
List of namespace names. |
Param
(Appears on:TriggerBindingSpec)
Param defines a string value to be used for a ParamSpec with the same name.
Field | Description |
---|---|
name string |
|
value string |
ParamSpec
(Appears on:TriggerTemplateSpec)
ParamSpec defines an arbitrary named input whose value can be supplied by a
Param
.
Field | Description |
---|---|
name string |
Name declares the name by which a parameter is referenced. |
description string |
(Optional)
Description is a user-facing description of the parameter that may be used to populate a UI. |
default string |
(Optional)
Default is the value a parameter takes if no input value via a Param is supplied. |
Resources
(Appears on:EventListenerSpec)
Field | Description |
---|---|
kubernetesResource KubernetesResource |
|
customResource CustomResource |
SecretRef
(Appears on:BitbucketInterceptor, GitHubInterceptor, GitLabInterceptor, GithubAddChangedFiles, GithubOwners)
SecretRef contains the information required to reference a single secret string This is needed because the other secretRef types are not cross-namespace and do not actually contain the “SecretName” field, which allows us to access a single secret value.
Field | Description |
---|---|
secretKey string |
|
secretName string |
SlackInterceptor
Field | Description |
---|---|
requestedFields []string |
Status
(Appears on:InterceptorResponse, StatusError)
Field | Description |
---|---|
code google.golang.org/grpc/codes.Code |
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. |
message string |
A developer-facing error message, which should be in English. |
StatusError
Field | Description |
---|---|
s Status |
TriggerBindingInterface
TriggerBindingInterface is implemented by TriggerBinding and ClusterTriggerBinding
TriggerBindingKind
(string
alias)
(Appears on:TriggerSpecBinding)
Check that EventListener may be validated and defaulted. TriggerBindingKind defines the type of TriggerBinding used by the EventListener.
Value | Description |
---|---|
"ClusterTriggerBinding" |
ClusterTriggerBindingKind indicates that triggerbinding type has a cluster scope. |
"TriggerBinding" |
NamespacedTriggerBindingKind indicates that triggerbinding type has a namespace scope. |
TriggerBindingSpec
(Appears on:ClusterTriggerBinding, TriggerBinding)
TriggerBindingSpec defines the desired state of the TriggerBinding.
Field | Description |
---|---|
params []Param |
Params defines the parameter mapping from the given input event. |
TriggerBindingStatus
(Appears on:ClusterTriggerBinding, TriggerBinding)
TriggerBindingStatus defines the observed state of TriggerBinding.
TriggerContext
(Appears on:InterceptorRequest)
Field | Description |
---|---|
event_url string |
EventURL is the URL of the incoming event |
event_id string |
EventID is a unique ID assigned by Triggers to each event |
trigger_id string |
TriggerID is of the form namespace/$ns/triggers/$name |
TriggerInterceptor
(Appears on:EventListenerTrigger, EventListenerTriggerGroup, TriggerSpec)
TriggerInterceptor provides a hook to intercept and pre-process events
Field | Description |
---|---|
name string |
Optional name to identify the current interceptor configuration |
ref InterceptorRef |
Ref refers to the Interceptor to use |
params []InterceptorParams |
Params are the params to send to the interceptor |
webhook WebhookInterceptor |
WebhookInterceptor refers to an old style webhook interceptor service |
TriggerResourceTemplate
(Appears on:TriggerTemplateSpec)
TriggerResourceTemplate describes a resource to create
Field | Description |
---|---|
RawExtension k8s.io/apimachinery/pkg/runtime.RawExtension |
(Members of |
TriggerSpec
(Appears on:Trigger)
TriggerSpec represents a connection between TriggerSpecBinding, and TriggerSpecTemplate; TriggerSpecBinding provides extracted values for TriggerSpecTemplate to then create resources from.
Field | Description |
---|---|
bindings []TriggerSpecBinding |
|
template TriggerSpecTemplate |
|
name string |
(Optional) |
interceptors []TriggerInterceptor |
|
serviceAccountName string |
(Optional)
ServiceAccountName optionally associates credentials with each trigger; Unlike EventListeners, this should be scoped to the same namespace as the Trigger itself |
TriggerSpecBinding
(Appears on:EventListenerTrigger, TriggerSpec)
Field | Description |
---|---|
name string |
Name is the name of the binding param Mutually exclusive with Ref |
value string |
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. |
ref string |
Ref is a reference to a TriggerBinding kind. Mutually exclusive with Name |
kind TriggerBindingKind |
Kind can only be provided if Ref is also provided. Defaults to TriggerBinding |
apiversion string |
APIVersion of the binding ref |
TriggerSpecTemplate
(Appears on:EventListenerTrigger, TriggerSpec)
Field | Description |
---|---|
ref string |
|
apiversion string |
|
spec TriggerTemplateSpec |
|
TriggerTemplate
TriggerTemplate takes parameters and uses them to create CRDs
Field | Description | ||||
---|---|---|---|---|---|
metadata Kubernetes meta/v1.ObjectMeta |
(Optional)
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||||
spec TriggerTemplateSpec |
(Optional)
Spec holds the desired state of the TriggerTemplate from the client
|
||||
status TriggerTemplateStatus |
(Optional) |
TriggerTemplateSpec
(Appears on:TriggerSpecTemplate, TriggerTemplate)
TriggerTemplateSpec holds the desired state of TriggerTemplate
Field | Description |
---|---|
params []ParamSpec |
|
resourcetemplates []TriggerResourceTemplate |
TriggerTemplateStatus
(Appears on:TriggerTemplate)
TriggerTemplateStatus describes the desired state of TriggerTemplate
WebhookInterceptor
(Appears on:TriggerInterceptor)
WebhookInterceptor provides a webhook to intercept and pre-process events
Field | Description |
---|---|
objectRef Kubernetes core/v1.ObjectReference |
(Optional)
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 |
url knative.dev/pkg/apis.URL |
(Optional) |
header []github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1.Param |
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. |
Generated with gen-crd-api-reference-docs
.
Feedback
Was this page helpful?