Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the standard v1alpha1 API group +kubebuilder:object:generate=true +groupName=standard.oam.dev
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "standard.oam.dev", 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 ( KubeTriggerKind = reflect.TypeOf(TriggerInstance{}).Name() KubeTriggerConfigKind = reflect.TypeOf(TriggerService{}).Name() )
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct {
APIVersion string `json:"apiVersion"`
Kind string `json:"kind"`
Name string `json:"name"`
Namespace string `json:"namespace"`
LastUpdateTime metav1.Time `json:"lastUpdateTime"`
}
func (*Resource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.
func (*Resource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerInstance ¶
type TriggerInstance struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TriggerInstanceSpec `json:"spec,omitempty"`
Status TriggerInstanceStatus `json:"status,omitempty"`
}
TriggerInstance is the Schema for the kubetriggers API.
func (*TriggerInstance) DeepCopy ¶
func (in *TriggerInstance) DeepCopy() *TriggerInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerInstance.
func (*TriggerInstance) DeepCopyInto ¶
func (in *TriggerInstance) DeepCopyInto(out *TriggerInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TriggerInstance) DeepCopyObject ¶
func (in *TriggerInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TriggerInstanceList ¶
type TriggerInstanceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []TriggerInstance `json:"items"`
}
TriggerInstanceList contains a list of TriggerInstance.
func (*TriggerInstanceList) DeepCopy ¶
func (in *TriggerInstanceList) DeepCopy() *TriggerInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerInstanceList.
func (*TriggerInstanceList) DeepCopyInto ¶
func (in *TriggerInstanceList) DeepCopyInto(out *TriggerInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TriggerInstanceList) DeepCopyObject ¶
func (in *TriggerInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TriggerInstanceSpec ¶
type TriggerInstanceSpec struct {
// Cache size for filters and actions.
//+optional
RegistrySize *int `json:"registrySize,omitempty"`
//+optional
LogLevel *string `json:"logLevel,omitempty"`
//+optional
WorkerConfig *WorkerConfig `json:"workerConfig,omitempty"`
}
TriggerInstanceSpec defines the desired state of TriggerInstance.
func (*TriggerInstanceSpec) DeepCopy ¶
func (in *TriggerInstanceSpec) DeepCopy() *TriggerInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerInstanceSpec.
func (*TriggerInstanceSpec) DeepCopyInto ¶
func (in *TriggerInstanceSpec) DeepCopyInto(out *TriggerInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerInstanceStatus ¶
type TriggerInstanceStatus struct {
// Important: Run "make" to regenerate code after modifying this file
// TODO(charlie0129): add status fields
// - If a kube-trigger instance is working fine
// - statistics
// - running jobs count
// - success jobs count
// - failed jobs count
CreatedResources []Resource `json:"createdResources"`
// TODO: make it useful
Healthy bool `json:"healthy"`
}
TriggerInstanceStatus defines the observed state of TriggerInstance.
func (*TriggerInstanceStatus) DeepCopy ¶
func (in *TriggerInstanceStatus) DeepCopy() *TriggerInstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerInstanceStatus.
func (*TriggerInstanceStatus) DeepCopyInto ¶
func (in *TriggerInstanceStatus) DeepCopyInto(out *TriggerInstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerService ¶
type TriggerService struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TriggerServiceSpec `json:"spec,omitempty"`
Status TriggerServiceStatus `json:"status,omitempty"`
}
+kubebuilder:object:root=true +kubebuilder:subresource:status +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object TriggerService is the Schema for the kubetriggerconfigs API.
func (*TriggerService) DeepCopy ¶
func (in *TriggerService) DeepCopy() *TriggerService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerService.
func (*TriggerService) DeepCopyInto ¶
func (in *TriggerService) DeepCopyInto(out *TriggerService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TriggerService) DeepCopyObject ¶
func (in *TriggerService) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TriggerServiceList ¶
type TriggerServiceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []TriggerService `json:"items"`
}
TriggerServiceList contains a list of TriggerService.
func (*TriggerServiceList) DeepCopy ¶
func (in *TriggerServiceList) DeepCopy() *TriggerServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerServiceList.
func (*TriggerServiceList) DeepCopyInto ¶
func (in *TriggerServiceList) DeepCopyInto(out *TriggerServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TriggerServiceList) DeepCopyObject ¶
func (in *TriggerServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TriggerServiceSpec ¶
type TriggerServiceSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file
Selector map[string]string `json:"selector"`
// Config for kube-trigger
//+optional
//+kubebuilder:object:generate=true
Triggers []config.TriggerMetaWrapper `json:"triggers"`
}
TriggerServiceSpec defines the desired state of TriggerService.
func (*TriggerServiceSpec) DeepCopy ¶
func (in *TriggerServiceSpec) DeepCopy() *TriggerServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerServiceSpec.
func (*TriggerServiceSpec) DeepCopyInto ¶
func (in *TriggerServiceSpec) DeepCopyInto(out *TriggerServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerServiceStatus ¶
type TriggerServiceStatus struct {
}
TriggerServiceStatus defines the observed state of TriggerService.
func (*TriggerServiceStatus) DeepCopy ¶
func (in *TriggerServiceStatus) DeepCopy() *TriggerServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerServiceStatus.
func (*TriggerServiceStatus) DeepCopyInto ¶
func (in *TriggerServiceStatus) DeepCopyInto(out *TriggerServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkerConfig ¶
type WorkerConfig struct {
//+optional
ActionRetry *bool `json:"actionRetry"`
// Max retry count after action failed to run.
//+optional
//+kubebuilder:validation:Minimum=0
MaxRetry *int `json:"maxRetry,omitempty"`
// First delay to retry actions in seconds, subsequent delays will grow exponentially.
//+optional
//+kubebuilder:validation:Minimum=0
RetryDelay *int `json:"retryDelay,omitempty"`
// Long-term QPS limiting per worker, this is shared between all watchers.
//+optional
//+kubebuilder:validation:Minimum=1
PerWorkerQPS *int `json:"perWorkerQPS,omitempty"`
// Queue size for running actions, this is shared between all watchers.
//+optional
//+kubebuilder:validation:Minimum=0
QueueSize *int `json:"queueSize,omitempty"`
// Timeout for each job in seconds.
//+optional
//+kubebuilder:validation:Minimum=1
Timeout *int `json:"timeout,omitempty"`
// Number of workers for running actions, this is shared between all watchers.
//+optional
//+kubebuilder:validation:Minimum=1
WorkerCount *int `json:"workerCount,omitempty"`
}
func (*WorkerConfig) DeepCopy ¶
func (in *WorkerConfig) DeepCopy() *WorkerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkerConfig.
func (*WorkerConfig) DeepCopyInto ¶
func (in *WorkerConfig) DeepCopyInto(out *WorkerConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.