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

Fix reconcile loop for DBaaS with reported default settings #83

Merged
merged 7 commits into from
Feb 1, 2023

Conversation

glrf
Copy link
Contributor

@glrf glrf commented Jan 25, 2023

Exoscale reports defaults settings when creating a DBaaS with empty settings. This means, when a new instance is created an infinite loop of updates are triggered as the managed resource settings never matches with the settings from upstream.

This PR fixes this by first fetching the setting schemas, extracting the defaults from it, and including it when calculating the diff.

Checklist

  • The PR has a meaningful title. It will be used to auto generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.
  • Ran e2e-tests

@glrf glrf added the bug Something isn't working label Jan 25, 2023
@glrf glrf self-assigned this Jan 25, 2023
@glrf glrf force-pushed the fix/default-settings branch 4 times, most recently from 6fb78e4 to 1a0c190 Compare January 31, 2023 12:30
@glrf glrf marked this pull request as ready for review January 31, 2023 13:45
@wejdross
Copy link
Member

wejdross commented Feb 1, 2023

Code change looks fine, tests are passing, I can't see issue anymore in logs. For me: LGTM

Copy link
Member

@wejdross wejdross left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@zugao zugao left a comment

Choose a reason for hiding this comment

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

LGTM, haven't tested it though.

@glrf glrf merged commit 7fc3c8e into master Feb 1, 2023
@glrf glrf deleted the fix/default-settings branch February 1, 2023 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants