Documentation ¶
Index ¶
- Constants
- type CollectorReconciler
- type FluentBitConfigReconciler
- func (r *FluentBitConfigReconciler) ListNamespacedResources(ctx context.Context, cfg fluentbitv1alpha2.FluentBitConfig) (fluentbitv1alpha2.FilterList, fluentbitv1alpha2.OutputList, ...)
- func (r *FluentBitConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *FluentBitConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
- type FluentBitReconciler
- type FluentdConfigReconciler
- func (r *FluentdConfigReconciler) CfgsForFluentd(ctx context.Context, cfgs fluentdv1alpha1.FluentdConfigList, ...) error
- func (r *FluentdConfigReconciler) CheckAllState(cfgs fluentdv1alpha1.FluentdConfigList, ...) (fluentdv1alpha1.StatusState, string)
- func (r *FluentdConfigReconciler) ClusterCfgsForFluentd(ctx context.Context, clustercfgs fluentdv1alpha1.ClusterFluentdConfigList, ...) error
- func (r *FluentdConfigReconciler) ListClusterLevelResources(ctx context.Context, ...) ([]fluentdv1alpha1.ClusterInput, []fluentdv1alpha1.ClusterFilter, ...)
- func (r *FluentdConfigReconciler) ListNamespacedLevelResources(ctx context.Context, namespace string, ...) ([]fluentdv1alpha1.Input, []fluentdv1alpha1.Filter, []fluentdv1alpha1.Output, ...)
- func (r *FluentdConfigReconciler) PatchObjects(ctx context.Context, obj client.Object, state fluentdv1alpha1.StatusState, ...) error
- func (r *FluentdConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *FluentdConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
- type FluentdReconciler
Constants ¶
const ( FluentdConfig = "FluentdConfig" ClusterFluentdConfig = "ClusterFluentdConfig" FluentdSecretMainKey = "fluent.conf" FluentdSecretSystemKey = "system.conf" FluentdSecretAppKey = "app.conf" FluentdSecretLogKey = "log.conf" FlUENT_INCLUDE = `# includes all files @include /fluentd/etc/system.conf @include /fluentd/etc/app.conf @include /fluentd/etc/log.conf ` SYSTEM = `# Enable RPC endpoint <system> rpc_endpoint 127.0.0.1:24444 log_level %s workers %d </system> ` FLUENTD_LOG = `` /* 206-byte string literal not displayed */ EMPTY_CFG = `` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectorReconciler ¶
CollectorReconciler reconciles a FluentBit object
func (*CollectorReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the FluentBit object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*CollectorReconciler) SetupWithManager ¶
func (r *CollectorReconciler) SetupWithManager(mgr ctrl.Manager) error
type FluentBitConfigReconciler ¶
FluentBitConfigReconciler reconciles a FluentBitConfig object
func (*FluentBitConfigReconciler) ListNamespacedResources ¶
func (r *FluentBitConfigReconciler) ListNamespacedResources( ctx context.Context, cfg fluentbitv1alpha2.FluentBitConfig, ) ( fluentbitv1alpha2.FilterList, fluentbitv1alpha2.OutputList, fluentbitv1alpha2.ParserList, fluentbitv1alpha2.ClusterParserList, fluentbitv1alpha2.MultilineParserList, fluentbitv1alpha2.ClusterMultilineParserList, error, )
func (*FluentBitConfigReconciler) Reconcile ¶
func (r *FluentBitConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the FluentBitConfig object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*FluentBitConfigReconciler) SetupWithManager ¶
func (r *FluentBitConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
type FluentBitReconciler ¶
type FluentBitReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme ContainerLogRealPath string Namespaced bool }
FluentBitReconciler reconciles a FluentBit object
func (*FluentBitReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the FluentBit object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*FluentBitReconciler) SetupWithManager ¶
func (r *FluentBitReconciler) SetupWithManager(mgr ctrl.Manager) error
type FluentdConfigReconciler ¶
FluentdConfigReconciler reconciles a FluentdConfig object
func (*FluentdConfigReconciler) CfgsForFluentd ¶
func (r *FluentdConfigReconciler) CfgsForFluentd(ctx context.Context, cfgs fluentdv1alpha1.FluentdConfigList, sl plugins.SecretLoader, gpr *fluentdv1alpha1.PluginResources, globalCfgLabels map[string]bool) error
CfgsForFluentd combines all namespaced cfgs selected by this fd
func (*FluentdConfigReconciler) CheckAllState ¶
func (r *FluentdConfigReconciler) CheckAllState( cfgs fluentdv1alpha1.FluentdConfigList, clustercfgs fluentdv1alpha1.ClusterFluentdConfigList, ) (fluentdv1alpha1.StatusState, string)
func (*FluentdConfigReconciler) ClusterCfgsForFluentd ¶
func (r *FluentdConfigReconciler) ClusterCfgsForFluentd( ctx context.Context, clustercfgs fluentdv1alpha1.ClusterFluentdConfigList, sl plugins.SecretLoader, gpr *fluentdv1alpha1.PluginResources, globalCfgLabels map[string]bool, ) error
ClusterCfgsForFluentd combines all cluster cfgs selected by this fd
func (*FluentdConfigReconciler) ListClusterLevelResources ¶
func (r *FluentdConfigReconciler) ListClusterLevelResources( ctx context.Context, inputSelector, filterSelector, outputSelector *metav1.LabelSelector, ) ([]fluentdv1alpha1.ClusterInput, []fluentdv1alpha1.ClusterFilter, []fluentdv1alpha1.ClusterOutput, error)
func (*FluentdConfigReconciler) ListNamespacedLevelResources ¶
func (r *FluentdConfigReconciler) ListNamespacedLevelResources( ctx context.Context, namespace string, inputSelector, filterSelector, outputSelector *metav1.LabelSelector, ) ([]fluentdv1alpha1.Input, []fluentdv1alpha1.Filter, []fluentdv1alpha1.Output, error)
func (*FluentdConfigReconciler) PatchObjects ¶
func (r *FluentdConfigReconciler) PatchObjects(ctx context.Context, obj client.Object, state fluentdv1alpha1.StatusState, msg string) error
PatchObjects patches the errors to the obj
func (*FluentdConfigReconciler) Reconcile ¶
func (r *FluentdConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*FluentdConfigReconciler) SetupWithManager ¶
func (r *FluentdConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager
type FluentdReconciler ¶
FluentdReconciler reconciles a Fluentd object
func (*FluentdReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Fluentd object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*FluentdReconciler) SetupWithManager ¶
func (r *FluentdReconciler) SetupWithManager(mgr ctrl.Manager) error