Documentation
¶
Index ¶
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 promtail-config
func GeneratePromtailConfig ¶
func GeneratePromtailConfig(lc loggedcluster.Interface) (v1.ConfigMap, error)
GeneratePromtailConfig returns a configmap for the promtail extra-config
Types ¶
type Reconciler ¶
Reconciler implements a reconciler.Interface to handle Promtail config: extra promtail 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 promtail config is created with the right credentials
func (*Reconciler) ReconcileDelete ¶
func (r *Reconciler) ReconcileDelete(ctx context.Context, lc loggedcluster.Interface) (ctrl.Result, error)
ReconcileDelete - Not much to do here when a cluster is deleted
Click to show internal directories.
Click to hide internal directories.