Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the testtriggers v1 API group +kubebuilder:object:generate=true +groupName=tests.testkube.io
Index ¶
- Variables
- type TestTrigger
- func (in *TestTrigger) DeepCopy() *TestTrigger
- func (in *TestTrigger) DeepCopyInto(out *TestTrigger)
- func (in *TestTrigger) DeepCopyObject() runtime.Object
- func (in *TestTrigger) SetupWebhookWithManager(mgr ctrl.Manager, validator TestTriggerValidator) error
- func (in *TestTrigger) ValidateCreate() error
- func (in *TestTrigger) ValidateDelete() error
- func (in *TestTrigger) ValidateUpdate(old runtime.Object) error
- type TestTriggerList
- type TestTriggerSelector
- type TestTriggerSpec
- type TestTriggerStatus
- type TestTriggerValidator
Constants ¶
This section is empty.
Variables ¶
var ( // Group represents the API Group Group = "tests.testkube.io" // Version represents the Resource version Version = "v1" // Resource corresponds to the CRD Kind Resource = "TestTrigger" // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: Group, Version: Version} // GroupVersionResource is group, version and resource used to register these objects GroupVersionResource = schema.GroupVersionResource{Group: Group, Version: Version, Resource: Resource} // 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 )
Functions ¶
This section is empty.
Types ¶
type TestTrigger ¶
type TestTrigger struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TestTriggerSpec `json:"spec,omitempty"` Status TestTriggerStatus `json:"status,omitempty"` }
TestTrigger is the Schema for the testtriggers API
func (*TestTrigger) DeepCopy ¶
func (in *TestTrigger) DeepCopy() *TestTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestTrigger.
func (*TestTrigger) DeepCopyInto ¶
func (in *TestTrigger) DeepCopyInto(out *TestTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestTrigger) DeepCopyObject ¶
func (in *TestTrigger) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TestTrigger) SetupWebhookWithManager ¶
func (in *TestTrigger) SetupWebhookWithManager(mgr ctrl.Manager, validator TestTriggerValidator) error
func (*TestTrigger) ValidateCreate ¶
func (in *TestTrigger) ValidateCreate() error
func (*TestTrigger) ValidateDelete ¶
func (in *TestTrigger) ValidateDelete() error
func (*TestTrigger) ValidateUpdate ¶
func (in *TestTrigger) ValidateUpdate(old runtime.Object) error
type TestTriggerList ¶
type TestTriggerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TestTrigger `json:"items"` }
TestTriggerList contains a list of TestTrigger
func (*TestTriggerList) DeepCopy ¶
func (in *TestTriggerList) DeepCopy() *TestTriggerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestTriggerList.
func (*TestTriggerList) DeepCopyInto ¶
func (in *TestTriggerList) DeepCopyInto(out *TestTriggerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestTriggerList) DeepCopyObject ¶
func (in *TestTriggerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TestTriggerSelector ¶
type TestTriggerSelector struct { // Name selector is used to identify a Kubernetes Object based on the metadata name Name string `json:"name,omitempty"` // Namespace of the Kubernetes object Namespace string `json:"namespace,omitempty"` // LabelSelector is used to identify a group of Kubernetes Objects based on their metadata labels LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"` }
TestTriggerSelector is used for selecting Kubernetes Objects
func (*TestTriggerSelector) DeepCopy ¶
func (in *TestTriggerSelector) DeepCopy() *TestTriggerSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestTriggerSelector.
func (*TestTriggerSelector) DeepCopyInto ¶
func (in *TestTriggerSelector) DeepCopyInto(out *TestTriggerSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestTriggerSpec ¶
type TestTriggerSpec struct { // For which Resource do we monitor Event which triggers an Action Resource string `json:"resource"` // ResourceSelector identifies which Kubernetes Objects should be watched ResourceSelector TestTriggerSelector `json:"resourceSelector"` // On which Event for a Resource should an Action be triggered Event string `json:"event"` // Action represents what needs to be executed for selected Execution Action string `json:"action"` // Execution identifies for which test execution should an Action be executed Execution string `json:"execution"` // TestSelector identifies on which Testkube Kubernetes Objects an Action should be taken TestSelector TestTriggerSelector `json:"testSelector"` }
TestTriggerSpec defines the desired state of TestTrigger
func (*TestTriggerSpec) DeepCopy ¶
func (in *TestTriggerSpec) DeepCopy() *TestTriggerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestTriggerSpec.
func (*TestTriggerSpec) DeepCopyInto ¶
func (in *TestTriggerSpec) DeepCopyInto(out *TestTriggerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestTriggerStatus ¶
type TestTriggerStatus struct { }
TestTriggerStatus defines the observed state of TestTrigger
func (*TestTriggerStatus) DeepCopy ¶
func (in *TestTriggerStatus) DeepCopy() *TestTriggerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestTriggerStatus.
func (*TestTriggerStatus) DeepCopyInto ¶
func (in *TestTriggerStatus) DeepCopyInto(out *TestTriggerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestTriggerValidator ¶
type TestTriggerValidator interface { ValidateCreate(context.Context, *TestTrigger) error ValidateUpdate(ctx context.Context, old runtime.Object, new *TestTrigger) error ValidateDelete(context.Context, *TestTrigger) error }
+k8s:deepcopy-gen=false