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

Manual sync of the upstream PR: #165 #550

Merged
merged 2 commits into from
Feb 6, 2024
Merged

Conversation

mprahl
Copy link
Contributor

@mprahl mprahl commented Feb 6, 2024

Closes #548

When the compliance events API is enabled, the replicated policies will
contain the annotation
policy.open-cluster-management.io/parent-policy-compliance-db-id and
each of its policy-templates entries will have the
policy.open-cluster-management.io/policy-compliance-db-id annotation.

As part of this, resilience to database connection losses and changes
was added. This is done by monitoring the database connection. If the
database connection is down, the replicated policy controller will queue
up reconcile requests to add the database specific annotations if the
answer isn't already cached. Once the database connection is restored,
the queued up reconciles will be triggered.

Note that now everytime a database connection changes, a database
migration is run. This is an idempotent action and it's to catch the
case where the database server has been swapped out or restored to an
older backup which may not have the latest database schema.

Relates:
https://issues.redhat.com/browse/ACM-6889

Signed-off-by: mprahl <[email protected]>
(cherry picked from commit 784bd89)
Copy link

openshift-ci bot commented Feb 6, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mprahl

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Feb 6, 2024
Copy link

sonarqubecloud bot commented Feb 6, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
73.1% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@mprahl mprahl merged commit 1570302 into stolostron:main Feb 6, 2024
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

😿 Failed to sync the upstream PRs: #165
1 participant