Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TemplateForPrometheusRuleResource ¶
func TemplateForPrometheusRuleResource(url, percent string, namespacedName types.NamespacedName) monitoringv1.PrometheusRule
TemplateForPrometheusRuleResource returns a PrometheusRule
Types ¶
type PrometheusRule ¶
type PrometheusRule struct { Client client.Client Ctx context.Context Comparer util.ResourceComparerInterface }
func NewPrometheusRule ¶
func NewPrometheusRule(ctx context.Context, c client.Client) *PrometheusRule
func (*PrometheusRule) DeletePrometheusRuleDeployment ¶
func (u *PrometheusRule) DeletePrometheusRuleDeployment(prometheusRuleRef v1alpha1.NamespacedName) error
func (*PrometheusRule) UpdatePrometheusRuleDeployment ¶
func (u *PrometheusRule) UpdatePrometheusRuleDeployment(template monitoringv1.PrometheusRule) error
Creates or Updates PrometheusRule Deployment according to the template
Click to show internal directories.
Click to hide internal directories.