Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdate ¶
func CreateOrUpdate(ctx context.Context, c client.Client, pr *monitoringv1.PrometheusRule) error
CreateOrUpdate attempts first to get the given prometheusrule. If the prometheusrule does not exist, the prometheusrule will be created. Otherwise, if the prometheusrule exists and the provided comparison func detects any changes an update is attempted. Updates are retried with backoff (See retry.DefaultRetry). Returns on failure an non-nil error.
func New ¶
func New(ruleName, namespace string, labels map[string]string, groups []monitoringv1.RuleGroup) *monitoringv1.PrometheusRule
New returns a prometheus-operator prometheusrule.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.