Documentation ¶
Index ¶
- func ConfigMeta(lc loggedcluster.Interface) metav1.ObjectMeta
- func GenerateAlloyLoggingConfig(lc loggedcluster.Interface, observabilityBundleVersion semver.Version, ...) (string, error)
- func GenerateLoggingConfig(lc loggedcluster.Interface, observabilityBundleVersion semver.Version, ...) (v1.ConfigMap, error)
- func GeneratePromtailLoggingConfig(lc loggedcluster.Interface, observabilityBundleVersion semver.Version) (string, error)
- type Reconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigMeta ¶
func ConfigMeta(lc loggedcluster.Interface) metav1.ObjectMeta
ConfigMeta returns metadata for the logging-config
func GenerateAlloyLoggingConfig ¶ added in v0.7.0
func GenerateAlloyLoggingConfig(lc loggedcluster.Interface, observabilityBundleVersion semver.Version, defaultNamespaces []string) (string, error)
GenerateAlloyLoggingConfig returns a configmap for the logging extra-config
func GenerateLoggingConfig ¶
func GeneratePromtailLoggingConfig ¶ added in v0.7.0
func GeneratePromtailLoggingConfig(lc loggedcluster.Interface, observabilityBundleVersion semver.Version) (string, error)
GeneratePromtailLoggingConfig returns a configmap for the logging extra-config
Types ¶
type Reconciler ¶
Reconciler implements a reconciler.Interface to handle Logging config: extra logging config defining what we want to retrieve.
func (*Reconciler) ReconcileCreate ¶
func (r *Reconciler) ReconcileCreate(ctx context.Context, lc loggedcluster.Interface) (ctrl.Result, error)
ReconcileCreate ensures logging-config is created with the right credentials
func (*Reconciler) ReconcileDelete ¶
func (r *Reconciler) ReconcileDelete(ctx context.Context, lc loggedcluster.Interface) (ctrl.Result, error)
ReconcileDelete ensure logging-config is deleted for the given cluster.
Click to show internal directories.
Click to hide internal directories.