Skip to content

Commit

Permalink
Merge pull request #2993 from smmuirhead100/smmuirhead100/rename-secr…
Browse files Browse the repository at this point in the history
…etSyncReconcier-tosecretSyncReconciler

🐛 Rename SecretSyncReconcier to SecretSyncReconciler (typo)
  • Loading branch information
k8s-ci-robot authored Oct 19, 2024
2 parents ced7381 + 548333d commit 3b032e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/multiclustersync/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func run() error {
clients[targetClusterName] = targetCluster.GetClient()
}

if err := b.Complete(&secretSyncReconcier{
if err := b.Complete(&secretSyncReconciler{
source: mgr.GetClient(),
targets: clients,
}); err != nil {
Expand All @@ -125,14 +125,14 @@ type request struct {
clusterName string
}

// secretSyncReconcier is a simple reconciler that keeps all secrets in the source namespace of a given
// secretSyncReconciler is a simple reconciler that keeps all secrets in the source namespace of a given
// source cluster in sync with the secrets in the target namespace of all target clusters.
type secretSyncReconcier struct {
type secretSyncReconciler struct {
source client.Client
targets map[string]client.Client
}

func (s *secretSyncReconcier) Reconcile(ctx context.Context, req request) (reconcile.Result, error) {
func (s *secretSyncReconciler) Reconcile(ctx context.Context, req request) (reconcile.Result, error) {
targetClient, found := s.targets[req.clusterName]
if !found {
return reconcile.Result{}, reconcile.TerminalError(fmt.Errorf("target cluster %s not found", req.clusterName))
Expand Down

0 comments on commit 3b032e1

Please sign in to comment.