Documentation
¶
Index ¶
- func ListOptions(name string) metav1.ListOptions
- func Status(ctx context.Context, kclient kubernetes.Interface, ...) (*monitoringv1.AlertmanagerStatus, []v1.Pod, error)
- type Config
- type Operator
- func (c *Operator) Iterate(processFn func(metav1.Object, []monitoringv1.Condition))
- func (c *Operator) RefreshStatusFor(o metav1.Object)
- func (c *Operator) Resolve(ss *appsv1.StatefulSet) metav1.Object
- func (c *Operator) Run(ctx context.Context) error
- func (c *Operator) Sync(ctx context.Context, key string) error
- func (c *Operator) UpdateStatus(ctx context.Context, key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListOptions ¶ added in v0.3.0
func ListOptions(name string) metav1.ListOptions
func Status ¶ added in v0.47.0
func Status(ctx context.Context, kclient kubernetes.Interface, a *monitoringv1.Alertmanager) (*monitoringv1.AlertmanagerStatus, []v1.Pod, error)
Status evaluates the current status of an Alertmanager object with respect to its specified resource object. It returns the status and a list of pods that are not updated. TODO(simonpasquier): remove once the status subresource is considered stable.
Types ¶
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator manages life cycle of Alertmanager deployments and monitoring configurations.
func New ¶
func New(ctx context.Context, c operator.Config, logger log.Logger, r prometheus.Registerer) (*Operator, error)
New creates a new controller.
func (*Operator) Iterate ¶ added in v0.65.0
func (c *Operator) Iterate(processFn func(metav1.Object, []monitoringv1.Condition))
Iterate implements the operator.StatusReconciler interface.
func (*Operator) RefreshStatusFor ¶ added in v0.65.0
RefreshStatus implements the operator.StatusReconciler interface.
func (*Operator) Resolve ¶ added in v0.61.0
func (c *Operator) Resolve(ss *appsv1.StatefulSet) metav1.Object
Resolve implements the operator.Syncer interface.
Click to show internal directories.
Click to hide internal directories.