Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cloud provider lib implementation #103

Merged
merged 8 commits into from
Jan 28, 2025

Conversation

r2dedios
Copy link
Collaborator

First approach for separating the cloud providers code from scanner and agent. This will allow us to use same library for interacting with public cloud providers, separate the cloud provider code from Cluster-iq code, and reuse it in the Agent and Scanner

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>
@r2dedios r2dedios added the enhancement New feature or request label Jan 15, 2025
@r2dedios r2dedios added this to the 0.3 milestone Jan 15, 2025
@r2dedios r2dedios self-assigned this Jan 15, 2025
@r2dedios r2dedios requested a review from vbelouso January 15, 2025 13:53
Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>
Copy link
Collaborator

@vbelouso vbelouso left a comment

Choose a reason for hiding this comment

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

Great job!! A couple of comments about the code and some typo

@vbelouso vbelouso changed the title chore: first working verison of cloud-provider lib feat: cloud provider lib implementation Jan 28, 2025
Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>
Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>
Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>
…ests for better performance

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>
…r check; Vars renaming to prevent name collision; fixed comments typos

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>
Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>
@r2dedios r2dedios requested a review from vbelouso January 28, 2025 14:53
@r2dedios
Copy link
Collaborator Author

Requested changes included. Please check it again. Thanks!!

@vbelouso
Copy link
Collaborator

/lgtm

@vbelouso
Copy link
Collaborator

Great job!
@r2dedios thanks a lot for your valuable contribution.

@vbelouso vbelouso merged commit 6bc7852 into RHEcosystemAppEng:release-0.3 Jan 28, 2025
r2dedios added a commit that referenced this pull request Feb 4, 2025
* chore: first working verison of cloud-provider lib

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* feat: add Helm chart (#101) (#102)

* feat: add Helm chart



* chore: fix formatting, Chart version, etc



---------

Signed-off-by: Vladimir Belousov <vbelouso@redhat.com>
Co-authored-by: Vladimir Belousov <89217163+vbelouso@users.noreply.github.com>

* chore: First approach for CloudAgent

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* chore: First gRPC Agent approach

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* chore: Modified API for including Power on/off handlers; Created AgentServer and clients objects for better coding

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* chore: Updated compose devel deployment

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* fix: Error on Makefile Doc string

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* feat: Added generic error on the API responses; Refactor Handlers file

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* fix: Removed response from HandlerRefreshInventory due to multiple HTTP responses causing errors on the Console

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* fix: comments copy-paste wrong

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* fix: Removed unused logger from AWSConnection

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* fix: Removed logger from AWSConnection creation

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* doc: Corrected and Improved AWSBillingStocker comments

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* doc: Corrected typo

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* refactor: Improved EC2 instance get operation by using paginated requests for better performance

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* refactor: simplified NewAWSConnection creation removing not used error check; Vars renaming to prevent name collision; fixed comments typos

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* doc: Fixed several typos on comments

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* feat: cloud provider lib implementation (#103)

feat: cloud provider lib implementation (#103)

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* fix: Replaced deprecated function 'grpc.Dial' by 'grpc.NewClient'

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* fix: correctly determine EC2 instance creation timestamp

Signed-off-by: Vladimir Belousov <vbelouso@redhat.com>

* Release 0.3 rc 1 (#107)

* doc: Updated project docs

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* build: Preparing release 0.3-rc-1

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* doc: Added architecture diagram file and png image

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* doc: Updated README file with new components, config options and Helm chart installation

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* ci: Updated Helm Chart version tags

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

---------

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* chore: reorganize server structure and improve shutdown handling (#113)

* chore: reorganize server structure and improve shutdown handling

Signed-off-by: Vladimir Belousov <vbelouso@redhat.com>

* chore: reorganize router

Signed-off-by: Vladimir Belousov <vbelouso@redhat.com>

---------

Signed-off-by: Vladimir Belousov <vbelouso@redhat.com>

* chore: minor improvements (typo, error wrapping, container build) (#111)

Signed-off-by: Vladimir Belousov <vbelouso@redhat.com>

* fix: Assigned CostExplorer service client connection correctly

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

* fix: typo on function 'setupSwagger'

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>

---------

Signed-off-by: Alejandro Villegas <alex.ansi.c@gmail.com>
Signed-off-by: Vladimir Belousov <vbelouso@redhat.com>
Co-authored-by: Vladimir Belousov <89217163+vbelouso@users.noreply.github.com>
Co-authored-by: Vladimir Belousov <vbelouso@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants