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 grafana-agent-config
func GenerateGrafanaAgentConfig ¶
func GenerateGrafanaAgentConfig(lc loggedcluster.Interface, appNamespace string) (v1.ConfigMap, error)
GenerateGrafanaAgentConfig returns a configmap for the grafana-agent extra-config
Types ¶
type ControllerType ¶ added in v0.6.0
type ControllerType string
type Reconciler ¶
Reconciler implements a reconciler.Interface to handle GrafanaAgent config: extra grafana-agent 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 grafana-agent 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 grafana-agent-config is deleted for the given cluster.
Click to show internal directories.
Click to hide internal directories.