Skip to content

Commit

Permalink
Fix typo: Prometheus -> Alertmanager
Browse files Browse the repository at this point in the history
Also, ServiceMonitor -> AlertmanagerConfig
  • Loading branch information
grdryn committed Sep 11, 2020
1 parent 8f7732a commit ab37127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/alertmanager/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (c *Operator) handleAlertmanagerConfigAdd(obj interface{}) {
}

func (c *Operator) handleAlertmanagerConfigUpdate(old, cur interface{}) {
if old.(*monitoringv1.ServiceMonitor).ResourceVersion == cur.(*monitoringv1.ServiceMonitor).ResourceVersion {
if old.(*monitoringv1.AlertmanagerConfig).ResourceVersion == cur.(*monitoringv1.AlertmanagerConfig).ResourceVersion {
return
}

Expand Down Expand Up @@ -315,7 +315,7 @@ func (c *Operator) enqueueForNamespace(store cache.Store, nsName string) {
}

for _, obj := range objs {
// Check for Prometheus instances in the namespace.
// Check for Alertmanager instances in the namespace.
am := obj.(*monitoringv1.Alertmanager)
if am.Namespace == nsName {
c.enqueue(am)
Expand Down

0 comments on commit ab37127

Please sign in to comment.