controllers

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
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 info
	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 FluentBitConfigReconciler

type FluentBitConfigReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

FluentBitConfigReconciler reconciles a FluentBitConfig object

func (*FluentBitConfigReconciler) 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 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

func (r *FluentBitReconciler) 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 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

type FluentdConfigReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

FluentdConfigReconciler reconciles a FluentdConfig object

func (*FluentdConfigReconciler) CfgsForFluentd

CfgsForFluentd combines all namespaced cfgs selected by this fd

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, cfgId string,
	filterSelector, outputSelector *metav1.LabelSelector) ([]fluentdv1alpha1.ClusterFilter, []fluentdv1alpha1.ClusterOutput, error)

func (*FluentdConfigReconciler) ListNamespacedLevelResources

func (r *FluentdConfigReconciler) ListNamespacedLevelResources(ctx context.Context, namespace, cfgId string,
	filterSelector, outputSelector *metav1.LabelSelector) ([]fluentdv1alpha1.Filter, []fluentdv1alpha1.Output, error)

func (*FluentdConfigReconciler) PatchObjects

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

type FluentdReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

FluentdReconciler reconciles a Fluentd object

func (*FluentdReconciler) Reconcile

func (r *FluentdReconciler) 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 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

Jump to

Keyboard shortcuts

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