Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the eventing v1alpha1 API group +kubebuilder:object:generate=true +groupName=eventing.keda.sh
Index ¶
- Constants
- Variables
- func GetCloudEventSourceInitializedConditions() *v1alpha1.Conditions
- type AzureEventGridTopicSpec
- type CloudEventHTTP
- type CloudEventSource
- func (in *CloudEventSource) DeepCopy() *CloudEventSource
- func (in *CloudEventSource) DeepCopyInto(out *CloudEventSource)
- func (in *CloudEventSource) DeepCopyObject() runtime.Object
- func (ces *CloudEventSource) GenerateIdentifier() string
- func (ces *CloudEventSource) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (ces *CloudEventSource) ValidateCreate() (admission.Warnings, error)
- func (ces *CloudEventSource) ValidateDelete() (admission.Warnings, error)
- func (ces *CloudEventSource) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type CloudEventSourceList
- type CloudEventSourceSpec
- type CloudEventSourceStatus
- type CloudEventType
- type Destination
- type EventSubscription
Constants ¶
const ( // CloudEventSourceConditionActiveReason defines the active condition reason for CloudEventSource CloudEventSourceConditionActiveReason = "CloudEventSourceActive" // CloudEventSourceConditionFailedReason defines the failed condition reason for CloudEventSource CloudEventSourceConditionFailedReason = "CloudEventSourceFailed" // CloudEventSourceConditionActiveMessage defines the active condition message for CloudEventSource CloudEventSourceConditionActiveMessage = "Is configured to send events to the configured destination" // CloudEventSourceConditionFailedMessage defines the failed condition message for CloudEventSource CloudEventSourceConditionFailedMessage = "Failed to send events to the configured destination" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "eventing.keda.sh", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var AllEventTypes = []CloudEventType{ScaledObjectFailedType, ScaledObjectReadyType}
Functions ¶
func GetCloudEventSourceInitializedConditions ¶
func GetCloudEventSourceInitializedConditions() *v1alpha1.Conditions
GetCloudEventSourceInitializedConditions returns CloudEventSource Conditions initialized to the default -> Status: Unknown
Types ¶
type AzureEventGridTopicSpec ¶ added in v2.14.0
type AzureEventGridTopicSpec struct {
Endpoint string `json:"endpoint"`
}
func (*AzureEventGridTopicSpec) DeepCopy ¶ added in v2.14.0
func (in *AzureEventGridTopicSpec) DeepCopy() *AzureEventGridTopicSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureEventGridTopicSpec.
func (*AzureEventGridTopicSpec) DeepCopyInto ¶ added in v2.14.0
func (in *AzureEventGridTopicSpec) DeepCopyInto(out *AzureEventGridTopicSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudEventHTTP ¶
type CloudEventHTTP struct {
URI string `json:"uri"`
}
func (*CloudEventHTTP) DeepCopy ¶
func (in *CloudEventHTTP) DeepCopy() *CloudEventHTTP
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEventHTTP.
func (*CloudEventHTTP) DeepCopyInto ¶
func (in *CloudEventHTTP) DeepCopyInto(out *CloudEventHTTP)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudEventSource ¶
type CloudEventSource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CloudEventSourceSpec `json:"spec"` Status CloudEventSourceStatus `json:"status,omitempty"` }
CloudEventSource defines how a KEDA event will be sent to event sink +kubebuilder:resource:path=cloudeventsources,scope=Namespaced +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Active",type="string",JSONPath=".status.conditions[?(@.type==\"Active\")].status"
func (*CloudEventSource) DeepCopy ¶
func (in *CloudEventSource) DeepCopy() *CloudEventSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEventSource.
func (*CloudEventSource) DeepCopyInto ¶
func (in *CloudEventSource) DeepCopyInto(out *CloudEventSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudEventSource) DeepCopyObject ¶
func (in *CloudEventSource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CloudEventSource) GenerateIdentifier ¶
func (ces *CloudEventSource) GenerateIdentifier() string
GenerateIdentifier returns identifier for the object in for "kind.namespace.name"
func (*CloudEventSource) SetupWebhookWithManager ¶ added in v2.14.0
func (ces *CloudEventSource) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*CloudEventSource) ValidateCreate ¶ added in v2.14.0
func (ces *CloudEventSource) ValidateCreate() (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*CloudEventSource) ValidateDelete ¶ added in v2.14.0
func (ces *CloudEventSource) ValidateDelete() (admission.Warnings, error)
func (*CloudEventSource) ValidateUpdate ¶ added in v2.14.0
type CloudEventSourceList ¶
type CloudEventSourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []CloudEventSource `json:"items"` }
CloudEventSourceList is a list of CloudEventSource resources
func (*CloudEventSourceList) DeepCopy ¶
func (in *CloudEventSourceList) DeepCopy() *CloudEventSourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEventSourceList.
func (*CloudEventSourceList) DeepCopyInto ¶
func (in *CloudEventSourceList) DeepCopyInto(out *CloudEventSourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudEventSourceList) DeepCopyObject ¶
func (in *CloudEventSourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CloudEventSourceSpec ¶
type CloudEventSourceSpec struct { // +optional ClusterName string `json:"clusterName,omitempty"` Destination Destination `json:"destination"` // +optional AuthenticationRef *v1alpha1.AuthenticationRef `json:"authenticationRef,omitempty"` // +optional EventSubscription EventSubscription `json:"eventSubscription,omitempty"` }
CloudEventSourceSpec defines the spec of CloudEventSource
func (*CloudEventSourceSpec) DeepCopy ¶
func (in *CloudEventSourceSpec) DeepCopy() *CloudEventSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEventSourceSpec.
func (*CloudEventSourceSpec) DeepCopyInto ¶
func (in *CloudEventSourceSpec) DeepCopyInto(out *CloudEventSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudEventSourceStatus ¶
type CloudEventSourceStatus struct { // +optional Conditions v1alpha1.Conditions `json:"conditions,omitempty"` }
CloudEventSourceStatus defines the observed state of CloudEventSource +optional
func (*CloudEventSourceStatus) DeepCopy ¶
func (in *CloudEventSourceStatus) DeepCopy() *CloudEventSourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEventSourceStatus.
func (*CloudEventSourceStatus) DeepCopyInto ¶
func (in *CloudEventSourceStatus) DeepCopyInto(out *CloudEventSourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudEventType ¶ added in v2.14.0
type CloudEventType string
CloudEventType contains the list of cloudevent types +kubebuilder:validation:Enum=keda.scaledobject.ready.v1;keda.scaledobject.failed.v1
const ( // ScaledObjectReadyType is for event when a new ScaledObject is ready ScaledObjectReadyType CloudEventType = "keda.scaledobject.ready.v1" // ScaledObjectFailedType is for event when creating ScaledObject failed ScaledObjectFailedType CloudEventType = "keda.scaledobject.failed.v1" )
type Destination ¶
type Destination struct { // +optional HTTP *CloudEventHTTP `json:"http"` // +optional AzureEventGridTopic *AzureEventGridTopicSpec `json:"azureEventGridTopic"` }
Destination defines the various ways to emit events
func (*Destination) DeepCopy ¶
func (in *Destination) DeepCopy() *Destination
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Destination.
func (*Destination) DeepCopyInto ¶
func (in *Destination) DeepCopyInto(out *Destination)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventSubscription ¶ added in v2.14.0
type EventSubscription struct { // +optional IncludedEventTypes []CloudEventType `json:"includedEventTypes,omitempty"` // +optional ExcludedEventTypes []CloudEventType `json:"excludedEventTypes,omitempty"` }
EventSubscription defines filters for events
func (*EventSubscription) DeepCopy ¶ added in v2.14.0
func (in *EventSubscription) DeepCopy() *EventSubscription
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSubscription.
func (*EventSubscription) DeepCopyInto ¶ added in v2.14.0
func (in *EventSubscription) DeepCopyInto(out *EventSubscription)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.