Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.

PMM-9965 Remove VM operator#1135

Open
percona-csalguero wants to merge 9 commits intomainfrom
PMM-9965-Remove_vm_operator
Open

PMM-9965 Remove VM operator#1135
percona-csalguero wants to merge 9 commits intomainfrom
PMM-9965-Remove_vm_operator

Conversation

@percona-csalguero
Copy link
Contributor

PMM-9965 DBaaS: Re-registering k8s cluster returns error

@codecov
Copy link

codecov bot commented May 26, 2022

Codecov Report

Merging #1135 (2b81d2b) into main (1011fab) will decrease coverage by 0.00%.
The diff coverage is 45.45%.

❗ Current head 2b81d2b differs from pull request most recent head 1ef560d. Consider uploading reports for the commit 1ef560d to get more accurate results

@@            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     
Flag Coverage Δ
all 48.64% <45.45%> (-0.01%) ⬇️
cover 49.14% <45.45%> (-0.01%) ⬇️
crosscover 48.98% <45.45%> (-0.01%) ⬇️
update 12.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
services/dbaas/dbaas_client.go 0.00% <0.00%> (ø)
services/management/dbaas/kubernetes_server.go 54.15% <71.42%> (+0.49%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1011fab...1ef560d. Read the comment docs.

})

if err != nil {
return errors.Wrap(err, "cannot stop monitoring")
Copy link
Contributor

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.

Copy link
Contributor Author

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.
Copy link
Contributor

@JiriCtvrtka JiriCtvrtka left a 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.

return c.kubernetesClient.StartMonitoring(ctx, in, opts...)
}

// StartMonitoring sets up victoria metrics operator to monitor kubernetes cluster.
Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants