Documentation
¶
Index ¶
- func ListOptions(name string) metav1.ListOptions
- func Status(ctx context.Context, kclient kubernetes.Interface, ...) (*monitoringv1.AlertmanagerStatus, []v1.Pod, error)
- func ValidateAlertmanager(am *monitoringv1.Alertmanager) error
- func ValidateAlertmanagerConfig(amc *monitoringv1alpha1.AlertmanagerConfig) error
- func ValidateURL(url string) (*config.URL, error)
- type Config
- type Operator
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)
func ValidateAlertmanager ¶ added in v0.56.0
func ValidateAlertmanager(am *monitoringv1.Alertmanager) error
ValidateAlertmanager runs extra validation on the AlertManager fields which can't be done at the CRD schema validation level.
func ValidateAlertmanagerConfig ¶ added in v0.54.0
func ValidateAlertmanagerConfig(amc *monitoringv1alpha1.AlertmanagerConfig) error
ValidateAlertmanagerConfig checks that the given resource complies with the semantics of the Alertmanager configuration. In particular, it verifies things that can't be modelized with the OpenAPI specification such as routes should refer to an existing receiver.
func ValidateURL ¶ added in v0.53.0
ValidateURL against the config.URL This could potentially become a regex and be validated via OpenAPI but right now, since we know we need to unmarshal into an upstream type after conversion, we validate we don't error when doing so
Types ¶
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator manages life cycle of Alertmanager deployments and monitoring configurations.