Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
Add comment about caller responsibility
Browse files Browse the repository at this point in the history
  • Loading branch information
walle committed Jun 14, 2022
1 parent 35ead41 commit 1a05b8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/etcdcluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,8 @@ func (r *EtcdClusterReconciler) defragCronJob(log logr.Logger, cluster *etcdv1al
}
}

// setupDefragDeps gathers the dependencies for running a defrag (etcd client and list of etcd members).
// The caller is responsible for closing the etcd client when done with the operations.
func (r *EtcdClusterReconciler) setupDefragDeps(log logr.Logger, cluster *etcdv1alpha1.EtcdCluster) (
etcd.API,
[]etcd.Member,
Expand Down

0 comments on commit 1a05b8d

Please sign in to comment.