Skip to content

🐛 Rename SecretSyncReconcier to SecretSyncReconciler (typo) #2993

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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