Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the logging-extensions v1alpha1 API group +kubebuilder:object:generate=true +groupName=logging-extensions.banzaicloud.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "logging-extensions.banzaicloud.io", 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 EventTailer ¶
type EventTailer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec EventTailerSpec `json:"spec,omitempty"` Status EventTailerStatus `json:"status,omitempty"` }
EventTailer is the Schema for the eventtailers API
func (*EventTailer) DeepCopy ¶
func (in *EventTailer) DeepCopy() *EventTailer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventTailer.
func (*EventTailer) DeepCopyInto ¶
func (in *EventTailer) DeepCopyInto(out *EventTailer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventTailer) DeepCopyObject ¶
func (in *EventTailer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EventTailerList ¶
type EventTailerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []EventTailer `json:"items"` }
EventTailerList contains a list of EventTailer
func (*EventTailerList) DeepCopy ¶
func (in *EventTailerList) DeepCopy() *EventTailerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventTailerList.
func (*EventTailerList) DeepCopyInto ¶
func (in *EventTailerList) DeepCopyInto(out *EventTailerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventTailerList) DeepCopyObject ¶
func (in *EventTailerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EventTailerSpec ¶
type EventTailerSpec struct { //+kubebuilder:validation:Required // The resources of EventTailer will be placed into this namespace ControlNamespace string `json:"controlNamespace"` // Volume definition for tracking fluentbit file positions (optional) PositionVolume volume.KubernetesVolume `json:"positionVolume,omitempty"` // Override metadata of the created resources WorkloadMetaBase *types.MetaBase `json:"workloadMetaOverrides,omitempty"` // Override podSpec fields for the given statefulset WorkloadBase *types.PodSpecBase `json:"workloadOverrides,omitempty"` // Override container fields for the given statefulset ContainerBase *types.ContainerBase `json:"containerOverrides,omitempty"` }
EventTailerSpec defines the desired state of EventTailer
func (*EventTailerSpec) DeepCopy ¶
func (in *EventTailerSpec) DeepCopy() *EventTailerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventTailerSpec.
func (*EventTailerSpec) DeepCopyInto ¶
func (in *EventTailerSpec) DeepCopyInto(out *EventTailerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventTailerStatus ¶
type EventTailerStatus struct { }
EventTailerStatus defines the observed state of EventTailer
func (*EventTailerStatus) DeepCopy ¶
func (in *EventTailerStatus) DeepCopy() *EventTailerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventTailerStatus.
func (*EventTailerStatus) DeepCopyInto ¶
func (in *EventTailerStatus) DeepCopyInto(out *EventTailerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FileTailer ¶
type FileTailer struct { // Name for the tailer Name string `json:"name"` // Path to the loggable file Path string `json:"path,omitempty"` // Disable tailing the file Disabled bool `json:"disabled,omitempty"` // Set the limit of the buffer size per active filetailer BufferMaxSize string `json:"buffer_max_size,omitempty"` // Set the buffer chunk size per active filetailer BufferChunkSize string `json:"buffer_chunk_size,omitempty"` // Skip long line when exceeding Buffer_Max_Size SkipLongLines string `json:"skip_long_lines,omitempty"` // Start reading from the head of new log files ReadFromHead bool `json:"read_from_head,omitempty"` // Override container fields for the given tailer ContainerBase *types.ContainerBase `json:"containerOverrides,omitempty"` }
FileTailer configuration options
func (FileTailer) Command ¶
func (f FileTailer) Command(Name string) []string
Command returns the desired command for the current filetailer
func (*FileTailer) DeepCopy ¶
func (in *FileTailer) DeepCopy() *FileTailer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileTailer.
func (*FileTailer) DeepCopyInto ¶
func (in *FileTailer) DeepCopyInto(out *FileTailer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (FileTailer) GeneralDescriptor ¶
func (f FileTailer) GeneralDescriptor() tailer.General
GeneralDescriptor returns the tailer.General general Tailer struct
type HostTailer ¶
type HostTailer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec HostTailerSpec `json:"spec,omitempty"` Status HostTailerStatus `json:"status,omitempty"` }
HostTailer is the Schema for the hosttailers API
func (*HostTailer) DeepCopy ¶
func (in *HostTailer) DeepCopy() *HostTailer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostTailer.
func (*HostTailer) DeepCopyInto ¶
func (in *HostTailer) DeepCopyInto(out *HostTailer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HostTailer) DeepCopyObject ¶
func (in *HostTailer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HostTailerList ¶
type HostTailerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []HostTailer `json:"items"` }
HostTailerList contains a list of [HostTailers](#hosttailer).
func (*HostTailerList) DeepCopy ¶
func (in *HostTailerList) DeepCopy() *HostTailerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostTailerList.
func (*HostTailerList) DeepCopyInto ¶
func (in *HostTailerList) DeepCopyInto(out *HostTailerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HostTailerList) DeepCopyObject ¶
func (in *HostTailerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HostTailerSpec ¶
type HostTailerSpec struct { // List of [file tailers](#filetailer). FileTailers []FileTailer `json:"fileTailers,omitempty"` // List of [systemd tailers](#systemdtailer). SystemdTailers []SystemdTailer `json:"systemdTailers,omitempty"` // EnableRecreateWorkloadOnImmutableFieldChange enables the operator to recreate the // daemonset (and possibly other resource in the future) in case there is a change in an immutable field // that otherwise couldn't be managed with a simple update. EnableRecreateWorkloadOnImmutableFieldChange bool `json:"enableRecreateWorkloadOnImmutableFieldChange,omitempty"` //+kubebuilder:validation:Required // Override metadata of the created resources WorkloadMetaBase *types.MetaBase `json:"workloadMetaOverrides,omitempty"` // Override podSpec fields for the given daemonset WorkloadBase *types.PodSpecBase `json:"workloadOverrides,omitempty"` }
HostTailerSpec defines the desired state of HostTailer
func (*HostTailerSpec) DeepCopy ¶
func (in *HostTailerSpec) DeepCopy() *HostTailerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostTailerSpec.
func (*HostTailerSpec) DeepCopyInto ¶
func (in *HostTailerSpec) DeepCopyInto(out *HostTailerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HostTailerStatus ¶
type HostTailerStatus struct { }
HostTailerStatus defines the observed state of HostTailer(#hosttailer).
func (*HostTailerStatus) DeepCopy ¶
func (in *HostTailerStatus) DeepCopy() *HostTailerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostTailerStatus.
func (*HostTailerStatus) DeepCopyInto ¶
func (in *HostTailerStatus) DeepCopyInto(out *HostTailerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SystemdTailer ¶
type SystemdTailer struct { // Name for the tailer Name string `json:"name"` // Override systemd log path Path string `json:"path,omitempty"` // Disable component Disabled bool `json:"disabled,omitempty"` // Filter to select systemd unit example: kubelet.service SystemdFilter string `json:"systemdFilter,omitempty"` // Maximum entries to read when starting to tail logs to avoid high pressure MaxEntries int `json:"maxEntries,omitempty"` // Override container fields for the given tailer ContainerBase *types.ContainerBase `json:"containerOverrides,omitempty"` }
SystemdTailer configuration options
func (SystemdTailer) Command ¶
func (s SystemdTailer) Command(Name string) []string
Command returns the desired command for the current systemdtailer
func (*SystemdTailer) DeepCopy ¶
func (in *SystemdTailer) DeepCopy() *SystemdTailer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SystemdTailer.
func (*SystemdTailer) DeepCopyInto ¶
func (in *SystemdTailer) DeepCopyInto(out *SystemdTailer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (SystemdTailer) GeneralDescriptor ¶
func (s SystemdTailer) GeneralDescriptor() tailer.General
GeneralDescriptor returns the tailer.General general Tailer struct