Skip to content

Conversation

@Kaushik-Vijayakumar
Copy link

@Kaushik-Vijayakumar Kaushik-Vijayakumar commented May 11, 2024

Fixes Issue #704.

Changes proposed on the PR:

Add support for a skip-reconcile annotation that allows operators to temporarily pause reconciliation for specific Redis Failover resources. This gives operators more control during maintenance windows and migrations.

Example usage:

apiVersion: databases.spotahome.com/v1
kind: RedisFailover
metadata:
  name: redisfailover-sample
  annotations:
    skip-reconcile: "true"
spec:
  # ... rest of the spec

Implementation Details

The implementation checks for the annotation at the start of the reconciliation loop:

if rf.Annotations != nil {
    skipReconcile, ok := rf.Annotations["skip-reconcile"]
    if ok && skipReconcile == "true" {
        r.logger.Infoln("skip-reconcile set to true. Skipping reconcile for", rf.Name)
        return nil
    }
}

@Kaushik-Vijayakumar Kaushik-Vijayakumar requested a review from a team May 11, 2024 09:25
@Kaushik-Vijayakumar Kaushik-Vijayakumar changed the title Initial commit Add skip-reconcile annotation support for controlled operator pause Oct 25, 2024
@Kaushik-Vijayakumar Kaushik-Vijayakumar requested a review from a team as a code owner July 21, 2025 09:02
@Kaushik-Vijayakumar Kaushik-Vijayakumar closed this by deleting the head repository Jul 21, 2025
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.

Add skip-reconcile annotation support for controlled operator pause during migrations

2 participants