Skip to content

Rework reconciliations not to use steps based on status #153

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

Open
wants to merge 28 commits into
base: main
Choose a base branch
from

Conversation

vincentmrg
Copy link
Contributor

No description provided.

- Fix a "send on closed channels" panic when multiple errors were returned
- Add wait group context cancelation
- End permissions tasks on first error raised
klibr007 and others added 8 commits February 26, 2025 17:22
* Add cache mechanism in the provider

* Add a cache per resource requested and flush when cache is subjected to changes

* Use flags to set cache entries ttl and cache cleanup intervals. Use super function to get instances and network interfaces.

* Add a mutex per cache

* Bump chart to 0.13.0-rc.3
Sometimes we would have a bug where a deleted but cached resource would be reconciled after the finalizer is removed.
@klibr007 klibr007 marked this pull request as ready for review March 28, 2025 16:00
@klibr007 klibr007 requested a review from a team March 28, 2025 16:00
Copy link
Contributor

@antonincms antonincms left a comment

Choose a reason for hiding this comment

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

Hello @klibr007, thanks for the PR.

Here is a first set of review comments.

@quortex quortex deleted a comment from klibr007 Apr 2, 2025
antonincms and others added 7 commits April 3, 2025 10:40
* Upgrade go to 1.23.0

* Upgrade golangci-lint to 2.0.2 in CI and Makefile

* Fix new warnings
* Update aws package to v2 and remove unnecessary v1 use

* Update packages

* Use rand.String and remove unnecessary internal/utils package

* Put lock on mutexes before it is flushed
Remove unecessary lock on securitygroup mutex

Invalidate key in instancesCache on network interface modification
klibr007 and others added 5 commits April 24, 2025 11:43
* Update the chart to use the cluster-id value

* Bump chart to 0.13.0-rc.7
* Add imds to retrieve vpcid when needed

* Update readme
* Test for aws provider reconciliation functions and small fixes

* Rename file and change ec2api to ec2client and small changes

* Update the tests

* Rename files and add mockgen in makefile

* Add changes check in github action

* Renames files and fixes tests

* Renames files and fixes tests

* Check the error code and the message when an error occurres in the tests

* Update tests

* Update internal/provider/aws/provider_test.go

---------

Co-authored-by: Antonin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants