Skip to content
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

Large refactor around reconcile workflow #26

Merged
merged 17 commits into from
Feb 20, 2024

Conversation

babysnakes
Copy link
Contributor

@babysnakes babysnakes commented Feb 17, 2024

Major controller modifications around Reconcile loop.

  Need to find out whether we need to explicitly requeue.
  - Consistent naming scheme.
  - Improved comments
  - Consistent logs
  Working but needs a lot of work...
  - Stop passing dynamicenv object
  - As a result of the above step I had to move StatusHandler to
    StatusManager to avoid import cycles - it was not a handler to begin
    with...
  Just to be consistent with status manager.
  Now that we created a way to add error only if not set, no need for
  double implementation.
  - do not nil as context
  - unused function
  For some reason without anything changing, it added a link to 'subsettype' :(
// CleanupManager is a handler that deals with removing DynamicEnv resources.
type CleanupManager struct {
client.Client
Ctx context.Context

Choose a reason for hiding this comment

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

Context should be passed via a parameter to function.

  This also reverts the need to configure crd docs generator.
@babysnakes babysnakes merged commit c529cda into Riskified:main Feb 20, 2024
5 of 6 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants