Skip to content

Commit

Permalink
Adds hub recovery labels on blue secrets
Browse files Browse the repository at this point in the history
Adds label changes to managedcluster agent where they will
add hub recovery label by default onto any source secret

Signed-off-by: vbadrina <[email protected]>
  • Loading branch information
vbnrh committed Mar 6, 2024
1 parent 0bcd644 commit bee0c61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/blue_secret_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (r *BlueSecretReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
Named("bluesecret_controller").
Watches(&source.Kind{Type: &corev1.Secret{}}, &handler.EnqueueRequestForObject{},
builder.WithPredicates(predicate.GenerationChangedPredicate{}, blueSecretPredicate)).
builder.WithPredicates(predicate.GenerationChangedPredicate{}, predicate.LabelChangedPredicate{}, blueSecretPredicate)).
Complete(r)
}

Expand Down
1 change: 1 addition & 0 deletions addons/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ const (
StorageIDKey = "storageid"
CephFSProvisionerTemplate = "%s.cephfs.csi.ceph.com"
SpokeMirrorPeerFinalizer = "spoke.multicluster.odf.openshift.io"
HubRecoveryLabel = "cluster.open-cluster-management.io/backup"
)

0 comments on commit bee0c61

Please sign in to comment.