-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
collecting GCP clusters data #693
Conversation
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
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.
@AnnuCode do you need some help for the PR to be ready for review? :)
@mlabouardy Hi, |
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
providers/gcp/container/container.go
Outdated
|
||
for _, cluster := range clusters.Clusters { | ||
tags := make([]models.Tag, 0) | ||
//according to docs, NodeConfig is deprecated and is advised to use node_pool.config |
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.
one more remark, if it's deprecated to use NodeConfig, can you change this to the non-deprecated way?
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.
@eneskaya yes sure, working on it.
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
Hey @AnnuCode I wanted to test your code, but it seems there is a critical bug which leads to komiser crashing. Please see screenshot. You can ping me once the issue is resolved and I can have a look again. EDIT: Also, make sure to add your func listOfSupportedServices() []providers.FetchDataFunction {
return []providers.FetchDataFunction{
compute.Instances,
storage.Buckets,
container.Clusters // <--- Add this
}
} |
Hey @AnnuCode, do you need some help with this PR? :) |
HI @mlabouardy , I think the program was crashing(invalid memory address) because I forgot to write the |
the 'Network Request Error' error was fixed last week, if you rebase your branch with |
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
Signed-off-by: Annu Singh <annu4444.as@gmail.com>
…o feature/666 Signed-off-by: Annu Singh <annu4444.as@gmail.com>
@mlabouardy Tried but could not do it. I started with |
@mlabouardy @eneskaya After resolving conflicts in the rebase process, this message is there. Can you please have a look? |
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.
@AnnuCode I've fixed the missing dependencies, thanks
Problem
Collect GCP Container clusters data
Solution
Created
container
package to collect GCP container clusters data.Changes Made
container
package.ExtractZoneFromURL
function toutils
package inregion.go
file as it is also used in the compute package.Notes
Link
of the GKE needs to be added in themodels.Resource
slice.Nodeconfig
is used which is deprecated according to the docs. It can be replaced usingNodepool
.Checklist
Reviewers
@eneskaya