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

[backport] fix granular databases #759

Merged
merged 3 commits into from Jun 13, 2022
Merged

Conversation

eguzki
Copy link
Member

@eguzki eguzki commented Jun 13, 2022

The `GetHighAvailabilityOptions` method that is used by all external
component reconcilers has logic that expects the secrets for all the
components being external. This means that even when a dependency is
configured as internal, as long as another dependency is configured
external this logic will try to retrieve the secret for the internal
dependency, failing the reconciliation.

Fix this by making the logic only populate the options for the
dependencies configured as external.
Currently, the Backend Redis reconciler creates a `redis-config`
ConfigMap the is used by the deployments, but the System Redis also
depends on that ConfigMap. This results in the failure to deploy the
System Redis when the Backend Redis is configured as external (which is
now possible since making this configuration fine grained).

Fix this by making the ConfigMap reconciliation common among both Redis
reconcilers, which will result in the ConfigMap being created regardless
of what combination of internal/external Redis is configured.
@eguzki eguzki requested a review from sergioifg94 June 13, 2022 12:16
@eguzki eguzki changed the title 3scale 2.12 dev [backport] fix granular databases Jun 13, 2022
@eguzki eguzki merged commit 56db6cc into 3scale-2.12-stable Jun 13, 2022
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.

None yet

2 participants