You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.FromContext(ctx).Info("Creating a new central ServiceMonitor", "ServiceMonitor.Namespace", serviceMonitor.Namespace, "ServiceMonitor.Name", serviceMonitor.Name)
58
-
err=r.Create(ctx, serviceMonitor)
59
-
iferr!=nil {
60
-
log.FromContext(ctx).Error(err, "Failed to create central ServiceMonitor", "ServiceMonitor.Namespace", serviceMonitor.Namespace, "ServiceMonitor.Name", serviceMonitor.Name)
61
-
returnerr
62
-
}
63
-
} else {
64
-
log.FromContext(ctx).Error(err, "Failed to get central ServiceMonitor", "ServiceMonitor.Namespace", serviceMonitor.Namespace, "ServiceMonitor.Name", serviceMonitor.Name)
65
-
returnerr
66
-
}
67
-
}
68
-
69
-
returnnil
70
-
}
71
-
72
25
// createLocalServiceMonitorObject generates the ServiceMonitor spec for a local ServiceMonitor
0 commit comments