Skip to content

Commit

Permalink
Merge pull request #35 from cybozu-go/kaizen/use-role-in-reconciliation
Browse files Browse the repository at this point in the history
kaizen: use role to check if it's primary in MantleBackup reconciler
  • Loading branch information
satoru-takeuchi authored Sep 3, 2024
2 parents 99c072d + 39d1724 commit 08d413d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/mantlebackup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (r *MantleBackupReconciler) Reconcile(ctx context.Context, req ctrl.Request
return ctrl.Result{}, err
}

if r.primarySettings != nil {
if r.role == RolePrimary {
client := r.primarySettings.Client
_, err := client.CreateOrUpdatePVC(
ctx,
Expand Down

0 comments on commit 08d413d

Please sign in to comment.