Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.zerok.ai
Index ¶
- Variables
- type Condition
- type DataType
- type ExecutorName
- type ExecutorType
- type ExecutorTypeEnum
- type Filter
- type Filters
- type GroupBy
- type InputTypes
- type OperatorTypes
- type ProtocolName
- type RateLimit
- type Rule
- type RuleGroup
- type RuleLeaf
- type Rules
- type ValueTypes
- type Workload
- type WorkloadKeys
- type Workloads
- type ZerokProbe
- type ZerokProbeList
- type ZerokProbePhase
- type ZerokProbeSpec
- type ZerokProbeStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "operator.zerok.ai", 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 )
Functions ¶
This section is empty.
Types ¶
type ExecutorName ¶
type ExecutorName string
type ExecutorTypeEnum ¶
type ExecutorTypeEnum struct { OTEL ExecutorType EBPF ExecutorType }
func (*ExecutorTypeEnum) DeepCopy ¶
func (in *ExecutorTypeEnum) DeepCopy() *ExecutorTypeEnum
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecutorTypeEnum.
func (*ExecutorTypeEnum) DeepCopyInto ¶
func (in *ExecutorTypeEnum) DeepCopyInto(out *ExecutorTypeEnum)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Filter ¶
type Filter struct { Type string `json:"type"` Condition Condition `json:"condition"` // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:Schemaless Filters *Filters `json:"filters,omitempty"` WorkloadKeys *WorkloadKeys `json:"workload_keys,omitempty"` }
+k8s:deepcopy-gen=false
func (*Filter) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Filter.
func (*Filter) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Filters ¶
type Filters []Filter
+k8s:deepcopy-gen=false
func (Filters) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Filters.
func (Filters) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GroupBy ¶
type GroupBy struct { WorkloadKey string `json:"workload_key"` Title string `json:"title"` Hash string `json:"hash"` }
+k8s:deepcopy-gen=true
func (*GroupBy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupBy.
func (*GroupBy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InputTypes ¶
type InputTypes string
type OperatorTypes ¶
type OperatorTypes string
type ProtocolName ¶
type ProtocolName string
type RateLimit ¶
type RateLimit struct { BucketMaxSize int `json:"bucket_max_size"` BucketRefillSize int `json:"bucket_refill_size"` TickDuration string `json:"tick_duration"` }
+k8s:deepcopy-gen=true
func (*RateLimit) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RateLimit.
func (*RateLimit) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Rule ¶
+k8s:deepcopy-gen=true
func (*Rule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
func (*Rule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleGroup ¶
type RuleGroup struct { Condition *Condition `json:"condition,omitempty"` // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:Schemaless Rules Rules `json:"rules,omitempty"` }
+k8s:deepcopy-gen=true
func (*RuleGroup) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleGroup.
func (*RuleGroup) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleLeaf ¶
type RuleLeaf struct { ID *string `json:"id,omitempty"` Datatype *DataType `json:"datatype,omitempty"` Operator *OperatorTypes `json:"operator,omitempty"` Value *ValueTypes `json:"value,omitempty"` JsonPath *[]string `json:"json_path,omitempty"` }
+k8s:deepcopy-gen=true
func (*RuleLeaf) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleLeaf.
func (*RuleLeaf) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Rules ¶
type Rules []Rule
+k8s:deepcopy-gen=true
func (Rules) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rules.
func (Rules) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ValueTypes ¶
type ValueTypes string
type Workload ¶
+k8s:deepcopy-gen=true
func (*Workload) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.
func (*Workload) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadKeys ¶
type WorkloadKeys []string
+k8s:deepcopy-gen=true
func (WorkloadKeys) DeepCopy ¶
func (in WorkloadKeys) DeepCopy() WorkloadKeys
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadKeys.
func (WorkloadKeys) DeepCopyInto ¶
func (in WorkloadKeys) DeepCopyInto(out *WorkloadKeys)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Workloads ¶
+k8s:deepcopy-gen=true
func (Workloads) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workloads.
func (Workloads) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZerokProbe ¶
type ZerokProbe struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ZerokProbeSpec `json:"spec,omitempty"` Status ZerokProbeStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status ZerokProbe is used to specify rules to filter the spans generated by the services ZerokProbe is the CRD schema for crating probe
func (*ZerokProbe) DeepCopy ¶
func (in *ZerokProbe) DeepCopy() *ZerokProbe
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZerokProbe.
func (*ZerokProbe) DeepCopyInto ¶
func (in *ZerokProbe) DeepCopyInto(out *ZerokProbe)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ZerokProbe) DeepCopyObject ¶
func (in *ZerokProbe) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ZerokProbeList ¶
type ZerokProbeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ZerokProbe `json:"items"` }
ZerokProbeList contains a list of ZerokProbe
func (*ZerokProbeList) DeepCopy ¶
func (in *ZerokProbeList) DeepCopy() *ZerokProbeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZerokProbeList.
func (*ZerokProbeList) DeepCopyInto ¶
func (in *ZerokProbeList) DeepCopyInto(out *ZerokProbeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ZerokProbeList) DeepCopyObject ¶
func (in *ZerokProbeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ZerokProbePhase ¶
type ZerokProbePhase string
ZerokPronePhase is a label for the condition of a Probe at the current time. +enum
const ( // ProbePending means the Probe has been accepted by the system, // has not been started. This includes time before being bound to a node, ProbePending ZerokProbePhase = "Pending" // ProbeRunning means the probe has // validating the probe and storing in DB ProbeRunning ZerokProbePhase = "Running" // ProbeSucceeded means that all validations are done stored in DB ProbeSucceeded ZerokProbePhase = "Succeeded" // ProbeFailed means that all validations are failing or redis storage is failing ProbeFailed ZerokProbePhase = "Failed" // ProbeUnknown means that for some reason the state of the probe could not be obtained, typically due // to an error in communicating with redis ProbeUnknown ZerokProbePhase = "Unknown" // ProbeDeleting means that the probe is being deleted ProbeDeleting ZerokProbePhase = "Deleting" )
These are the valid statuses of pods.
type ZerokProbeSpec ¶
type ZerokProbeSpec struct { Title string `json:"title"` Enabled bool `json:"enabled"` Workloads Workloads `json:"workloads,omitempty"` Filter Filter `json:"filter,omitempty"` GroupBy []GroupBy `json:"group_by,omitempty"` RateLimit []RateLimit `json:"rate_limit,omitempty"` }
+k8s:deepcopy-gen=true
func (*ZerokProbeSpec) DeepCopy ¶
func (in *ZerokProbeSpec) DeepCopy() *ZerokProbeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZerokProbeSpec.
func (*ZerokProbeSpec) DeepCopyInto ¶
func (in *ZerokProbeSpec) DeepCopyInto(out *ZerokProbeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZerokProbeStatus ¶
type ZerokProbeStatus struct { // +optional Phase ZerokProbePhase `json:"phase,omitempty"` Conditions []metav1.Condition `json:"conditions,omitempty"` }
ZerokProbeStatus defines the observed state of Probe
func (*ZerokProbeStatus) DeepCopy ¶
func (in *ZerokProbeStatus) DeepCopy() *ZerokProbeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZerokProbeStatus.
func (*ZerokProbeStatus) DeepCopyInto ¶
func (in *ZerokProbeStatus) DeepCopyInto(out *ZerokProbeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.