-
Notifications
You must be signed in to change notification settings - Fork 39
PMM-9965 Remove VM operator #1135
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1135 +/- ##
==========================================
- Coverage 48.98% 48.98% -0.01%
==========================================
Files 182 182
Lines 21323 21334 +11
==========================================
+ Hits 10445 10450 +5
- Misses 9723 9728 +5
- Partials 1155 1156 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
}) | ||
|
||
if err != nil { | ||
return errors.Wrap(err, "cannot stop monitoring") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's for now just log the message and go on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to log.Warn
Errors are just logged and won't prevent the methos execution until the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM I left only one minor comment.
services/dbaas/dbaas_client.go
Outdated
@@ -237,3 +237,10 @@ func (c *Client) StartMonitoring(ctx context.Context, in *controllerv1beta1.Star | |||
defer c.connM.RUnlock() | |||
return c.kubernetesClient.StartMonitoring(ctx, in, opts...) | |||
} | |||
|
|||
// StartMonitoring sets up victoria metrics operator to monitor kubernetes cluster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think comment should start with StopMonitoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…ona/pmm-managed into PMM-9965-Remove_vm_operator
PMM-9965 DBaaS: Re-registering k8s cluster returns error