v1alpha1

package
v0.0.1-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 2

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

View Source
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
)
View Source
var (
	KubeTriggerKind       = reflect.TypeOf(KubeTrigger{}).Name()
	KubeTriggerConfigKind = reflect.TypeOf(KubeTriggerConfig{}).Name()
)

Functions

This section is empty.

Types

type KubeTrigger

type KubeTrigger struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KubeTriggerSpec   `json:"spec,omitempty"`
	Status KubeTriggerStatus `json:"status,omitempty"`
}

KubeTrigger is the Schema for the kubetriggers API.

func (*KubeTrigger) DeepCopy

func (in *KubeTrigger) DeepCopy() *KubeTrigger

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeTrigger.

func (*KubeTrigger) DeepCopyInto

func (in *KubeTrigger) DeepCopyInto(out *KubeTrigger)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KubeTrigger) DeepCopyObject

func (in *KubeTrigger) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KubeTriggerConfig

type KubeTriggerConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KubeTriggerConfigSpec   `json:"spec,omitempty"`
	Status KubeTriggerConfigStatus `json:"status,omitempty"`
}

KubeTriggerConfig is the Schema for the kubetriggerconfigs API.

func (*KubeTriggerConfig) DeepCopy

func (in *KubeTriggerConfig) DeepCopy() *KubeTriggerConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeTriggerConfig.

func (*KubeTriggerConfig) DeepCopyInto

func (in *KubeTriggerConfig) DeepCopyInto(out *KubeTriggerConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KubeTriggerConfig) DeepCopyObject

func (in *KubeTriggerConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KubeTriggerConfigList

type KubeTriggerConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KubeTriggerConfig `json:"items"`
}

KubeTriggerConfigList contains a list of KubeTriggerConfig.

func (*KubeTriggerConfigList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeTriggerConfigList.

func (*KubeTriggerConfigList) DeepCopyInto

func (in *KubeTriggerConfigList) DeepCopyInto(out *KubeTriggerConfigList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KubeTriggerConfigList) DeepCopyObject

func (in *KubeTriggerConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KubeTriggerConfigSpec

type KubeTriggerConfigSpec 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
	Watchers []Watcher `json:"watchers"`
}

KubeTriggerConfigSpec defines the desired state of KubeTriggerConfig.

func (*KubeTriggerConfigSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeTriggerConfigSpec.

func (*KubeTriggerConfigSpec) DeepCopyInto

func (in *KubeTriggerConfigSpec) DeepCopyInto(out *KubeTriggerConfigSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KubeTriggerConfigStatus

type KubeTriggerConfigStatus struct {
}

KubeTriggerConfigStatus defines the observed state of KubeTriggerConfig.

func (*KubeTriggerConfigStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeTriggerConfigStatus.

func (*KubeTriggerConfigStatus) DeepCopyInto

func (in *KubeTriggerConfigStatus) DeepCopyInto(out *KubeTriggerConfigStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KubeTriggerList

type KubeTriggerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KubeTrigger `json:"items"`
}

KubeTriggerList contains a list of KubeTrigger.

func (*KubeTriggerList) DeepCopy

func (in *KubeTriggerList) DeepCopy() *KubeTriggerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeTriggerList.

func (*KubeTriggerList) DeepCopyInto

func (in *KubeTriggerList) DeepCopyInto(out *KubeTriggerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KubeTriggerList) DeepCopyObject

func (in *KubeTriggerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KubeTriggerSpec

type KubeTriggerSpec 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"`
}

KubeTriggerSpec defines the desired state of KubeTrigger.

func (*KubeTriggerSpec) DeepCopy

func (in *KubeTriggerSpec) DeepCopy() *KubeTriggerSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeTriggerSpec.

func (*KubeTriggerSpec) DeepCopyInto

func (in *KubeTriggerSpec) DeepCopyInto(out *KubeTriggerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KubeTriggerStatus

type KubeTriggerStatus 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"`
}

KubeTriggerStatus defines the observed state of KubeTrigger.

func (*KubeTriggerStatus) DeepCopy

func (in *KubeTriggerStatus) DeepCopy() *KubeTriggerStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeTriggerStatus.

func (*KubeTriggerStatus) DeepCopyInto

func (in *KubeTriggerStatus) DeepCopyInto(out *KubeTriggerStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Meta

type Meta struct {
	Type string `json:"type"`
	//+kubebuilder:pruning:PreserveUnknownFields
	Properties *runtime.RawExtension `json:"properties"`
}

func (*Meta) DeepCopy

func (in *Meta) DeepCopy() *Meta

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Meta.

func (*Meta) DeepCopyInto

func (in *Meta) DeepCopyInto(out *Meta)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

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

func (in *Resource) DeepCopy() *Resource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.

func (*Resource) DeepCopyInto

func (in *Resource) DeepCopyInto(out *Resource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Watcher

type Watcher struct {
	Source  Meta   `json:"source"`
	Filters []Meta `json:"filters"`
	Actions []Meta `json:"actions"`
}

func (*Watcher) DeepCopy

func (in *Watcher) DeepCopy() *Watcher

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Watcher.

func (*Watcher) DeepCopyInto

func (in *Watcher) DeepCopyInto(out *Watcher)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL