Documentation ¶
Index ¶
- func EnsureCreated(cfg alertmanagerconfig.Config, cluster metav1.Object, installation string) (alertmanagerconfig.Config, bool, error)
- func EnsureDeleted(cfg alertmanagerconfig.Config, cluster metav1.Object, installation string) (alertmanagerconfig.Config, bool, error)
- func IsEmptyRouteError(err error) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureCreated ¶
func EnsureCreated(cfg alertmanagerconfig.Config, cluster metav1.Object, installation string) (alertmanagerconfig.Config, bool, error)
EnsureCreated ensure route exist in cfg.Route and is up to date. Returns true when changes have been made to cfg. Return untouched cfg and false when no changes are made.
func EnsureDeleted ¶
func EnsureDeleted(cfg alertmanagerconfig.Config, cluster metav1.Object, installation string) (alertmanagerconfig.Config, bool, error)
EnsureDeleted ensure route is removed from cfg.Receivers. Returns true when changes have been made to cfg. Return untouched cfg and false when no changes are made.
func IsEmptyRouteError ¶
IsEmptyRouteError asserts emptyRouteError.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.