Browse Source

Added changes to the Reconcile function documentation

Elsa Chelala 5 years ago
parent
commit
30d2c8648c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      pkg/controllers/externalsecret/externalsecret_controller.go

+ 3 - 1
pkg/controllers/externalsecret/externalsecret_controller.go

@@ -52,7 +52,9 @@ type Reconciler struct {
 	ControllerClass string
 	ControllerClass string
 }
 }
 
 
-// Reconcile returns a new ExternalSecret object.
+// Reconcile implements the main reconciliation loop
+// for watched objects (ExternalSecret, ClusterSecretStore and SecretStore),
+// and updates/creates a Kubernetes secret based on them.
 func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
 func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
 	log := r.Log.WithValues("ExternalSecret", req.NamespacedName)
 	log := r.Log.WithValues("ExternalSecret", req.NamespacedName)